|
|
@@ -86,6 +86,8 @@ class ImageSaver:
|
|
|
print("保存图片[quality]:{}".format(out_path))
|
|
|
if dpi:
|
|
|
print("保存图片[dpi]:{}".format(out_path))
|
|
|
+ _format = "JPEG" if _format.upper()=="JPG" else _format
|
|
|
+ print("保存图片[format]:{}".format(_format))
|
|
|
image.save(out_path, quality=quality, dpi=dpi, format=_format)
|
|
|
else:
|
|
|
print("保存图片[not dpi]:{}".format(out_path))
|