vc
This commit is contained in:
parent
e3f3b7e7fa
commit
980851d63f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue