Faster image previews
This commit is contained in:
parent
112b9b4da5
commit
fcb95e9154
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user