Various build fixes, cleanup and details #6

Merged
leo merged 34 commits from trace into main 2023-11-21 15:32:49 +00:00
Showing only changes of commit 8437c1f60e - Show all commits

View File

@ -1,4 +1,5 @@
import asyncio
import gc
import io
import mimetypes
import urllib.parse
@ -109,5 +110,7 @@ def process_video(path, *, maxsize, quality):
img = img.rotate(rot, expand=True)
img.save(imgdata, format="webp", quality=quality, method=4)
del img
return imgdata.getvalue()
ret = imgdata.getvalue()
del imgdata
gc.collect()
return ret