fix orientation (thx sneks my love)

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-25 22:19:16 +02:00
parent f9343d3db1
commit e182ddc738
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ def process_image(filename=None, resize=0, trim=False, uploader=None, patron=Fal
abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for paypigs)")
with Image.open(filename) as i:
params = ["convert", "-coalesce", filename, "-quality", "88", "-define", "webp:method=6", "-strip"]
params = ["convert", "-coalesce", filename, "-quality", "88", "-define", "webp:method=6", "-strip", "-auto-orient"]
if trim and len(list(Iterator(i))) == 1:
params.append("-trim")
if resize and i.width > resize: