Faster image previews

This commit is contained in:
Leo Vasanko 2025-08-15 10:11:20 -06:00
parent 112b9b4da5
commit fcb95e9154

View File

@ -92,7 +92,7 @@ def process_image(path, *, maxsize, quality):
# Save as AVIF
imgdata = io.BytesIO()
t_save_start = perf_counter()
img.save(imgdata, format="avif", quality=quality)
img.save(imgdata, format="avif", quality=quality, speed=10)
t_save_end = perf_counter()
ret = imgdata.getvalue()