Limit number of threads.
This commit is contained in:
1 parent
97353efffb
commit
21352daf11
1 file changed
+1
-1
+1
-1
@@ -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, speed=10)
|
||||
img.save(imgdata, format="avif", quality=quality, speed=10, max_threads=1)
|
||||
t_save_end = perf_counter()
|
||||
|
||||
ret = imgdata.getvalue()
|
||||
|
||||
Reference in new issue
Block a user