From 21352daf112550c4bf5c6b4a0b653db9f6199953 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Fri, 15 Aug 2025 10:17:48 -0600 Subject: [PATCH] Limit number of threads. --- cista/preview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cista/preview.py b/cista/preview.py index 2878d25..fcaecb7 100644 --- a/cista/preview.py +++ b/cista/preview.py @@ -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()