Various build fixes, cleanup and details #6
|
@ -113,6 +113,8 @@ def process_video(path, *, maxsize, quality):
|
||||||
if rotation:
|
if rotation:
|
||||||
img = img.rotate(rotation, expand=True)
|
img = img.rotate(rotation, expand=True)
|
||||||
img.save(imgdata, format="webp", quality=quality, method=4)
|
img.save(imgdata, format="webp", quality=quality, method=4)
|
||||||
|
del img
|
||||||
|
|
||||||
ret = imgdata.getvalue()
|
ret = imgdata.getvalue()
|
||||||
gc.collect()
|
gc.collect()
|
||||||
return ret
|
return ret
|
||||||
|
|
Loading…
Reference in New Issue
Block a user