forked from MarseyWorld/MarseyWorld
master
parent
12dce2dcad
commit
31e3179710
|
@ -35,10 +35,10 @@ def process_image(file=None, filename=None, resize=0):
|
|||
|
||||
om = next(frames)
|
||||
om.info = i.info
|
||||
om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0, method=6, allow_mixed=True, exif=exif)
|
||||
om.save(filename, format="WEBP", save_all=True, append_images=list(frames), loop=0, method=6, allow_mixed=True)
|
||||
elif i.format.lower() != "webp":
|
||||
if i.format.lower() == "gif":
|
||||
gifwebp(input_image=filename, output_image=filename, option="-mixed -metadata none -f 100 -mt -m 6")
|
||||
else: i.save(filename, format="WEBP", method=6, exif=exif)
|
||||
else: i.save(filename, format="WEBP", method=6)
|
||||
|
||||
return f'/static{filename}'
|
Loading…
Reference in New Issue