mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
slightly smaller jpeg thumbnails
This commit is contained in:
parent
95014236ac
commit
5562de330f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue