fix: min-original not saved (#1716)

This commit is contained in:
Miroito 2022-10-22 02:04:51 +02:00 committed by GitHub
parent 9ecef4c25f
commit a59d1ae2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,9 +65,6 @@ class PillowMinifier(ABCMinifier):
Converts an image to the webp format in-place. The original image is not
removed By default, the quality is set to 100.
"""
if image_file.suffix == WEBP:
return image_file
img = Image.open(image_file)
dest = dest or image_file.with_suffix(WEBP)