From 5562de330f30860218c7392a66089686eb196b21 Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 2 Sep 2021 18:51:15 +0200 Subject: [PATCH] slightly smaller jpeg thumbnails --- copyparty/th_srv.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/copyparty/th_srv.py b/copyparty/th_srv.py index 60d299e6..ef769a24 100644 --- a/copyparty/th_srv.py +++ b/copyparty/th_srv.py @@ -270,13 +270,14 @@ class ThumbSrv(object): fmts += ["RGBA", "LA"] args["method"] = 6 else: - pass # default q = 75 + # default q = 75 + args["progressive"] = True if im.mode not in fmts: # print("conv {}".format(im.mode)) im = im.convert("RGB") - im.save(tpath, quality=40, method=6) + im.save(tpath, **args) def conv_ffmpeg(self, abspath, tpath): ret, _ = ffprobe(abspath)