Try to half image width instead of quarter for thumbnail

This commit is contained in:
2023-11-19 13:27:12 +08:00
parent 11c3faddb0
commit 982565bd95
+1 -1
View File
@@ -23,7 +23,7 @@ def main():
exit(1)
width, height = image.size
target_width = int(max(width/4, 1280))
target_width = int(max(width/2, 1280))
new_height = int(target_width * height / width)
image = image.resize((target_width, new_height), Image.Resampling.BICUBIC)