Update the project to run with modern uv/bun (or python/nodejs) environment #7
@ -100,7 +100,7 @@ def process_image(path, *, maxsize, quality):
|
||||
load_ms = (t_load_end - t_load_start) * 1000
|
||||
proc_ms = (t_proc_end - t_proc_start) * 1000
|
||||
save_ms = (t_save_end - t_save_start) * 1000
|
||||
logger.debug(
|
||||
logger.info(
|
||||
"Preview image %s: load=%.1fms process=%.1fms save=%.1fms out=%.1fKB %dx%d -> %dx%d q=%d",
|
||||
path.name,
|
||||
load_ms,
|
||||
@ -131,7 +131,7 @@ def process_pdf(path, *, maxsize, maxzoom, quality, page_number=0):
|
||||
ret = pix.pil_tobytes(format="avif", quality=quality, method=4)
|
||||
t_save_end = perf_counter()
|
||||
|
||||
logger.debug(
|
||||
logger.info(
|
||||
"Preview pdf %s: load+render=%.1fms save=%.1fms out=%.1fKB page=%d zoom=%.2f",
|
||||
path.name,
|
||||
(t_load_end - t_load_start) * 1000,
|
||||
@ -229,7 +229,7 @@ def process_video(path, *, maxsize, quality):
|
||||
fw = getattr(frame, "width", 0) if frame else 0
|
||||
fh = getattr(frame, "height", 0) if frame else 0
|
||||
ret = imgdata.getvalue()
|
||||
logger.debug(
|
||||
logger.info(
|
||||
"Preview video %s: load+decode=%.1fms save=%.1fms out=%.1fKB dims=%dx%d q=%d",
|
||||
path.name,
|
||||
(t_load_end - t_load_start) * 1000,
|
||||
|
Loading…
x
Reference in New Issue
Block a user