mirror of
https://github.com/rottenwheel/revuo-weekly.git
synced 2024-11-16 17:17:35 +00:00
Compare commits
4 commits
063f4610ec
...
bad188585c
Author | SHA1 | Date | |
---|---|---|---|
|
bad188585c | ||
|
6d672e5527 | ||
|
8cc9051148 | ||
|
220673484a |
2 changed files with 5 additions and 2 deletions
|
@ -6,7 +6,7 @@ import argparse
|
|||
import datetime
|
||||
import tempfile
|
||||
import tomllib
|
||||
|
||||
from PIL import Image
|
||||
|
||||
def get_period_string(
|
||||
start: datetime.datetime,
|
||||
|
@ -124,6 +124,9 @@ def create_issue_image(
|
|||
]
|
||||
)
|
||||
|
||||
image = Image.open(f"content/weekly/issue-{issue_number}/cover.png")
|
||||
image = image.convert("RGB").quantize(colors=256)
|
||||
image.save(f"content/weekly/issue-{issue_number}/cover.png", "PNG", compress_level=9)
|
||||
|
||||
def get_latest_issue() -> int:
|
||||
"""Get the latest issue number from the weekly directory
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit d3fefcb9046e9c3c0f47549f564650c42db3891b
|
||||
Subproject commit 57c6732cffffd8badbce45dd2a715763a1d5399c
|
Loading…
Reference in a new issue