slightly smaller jpeg thumbnails

This commit is contained in:
ed 2021-09-02 18:51:15 +02:00
parent 95014236ac
commit 5562de330f

View file

@ -270,13 +270,14 @@ class ThumbSrv(object):
fmts += ["RGBA", "LA"] fmts += ["RGBA", "LA"]
args["method"] = 6 args["method"] = 6
else: else:
pass # default q = 75 # default q = 75
args["progressive"] = True
if im.mode not in fmts: if im.mode not in fmts:
# print("conv {}".format(im.mode)) # print("conv {}".format(im.mode))
im = im.convert("RGB") im = im.convert("RGB")
im.save(tpath, quality=40, method=6) im.save(tpath, **args)
def conv_ffmpeg(self, abspath, tpath): def conv_ffmpeg(self, abspath, tpath):
ret, _ = ffprobe(abspath) ret, _ = ffprobe(abspath)