From a59d1ae2f98bade180e8b62936191e4d3dff7d5e Mon Sep 17 00:00:00 2001 From: Miroito <88556823+Miroito@users.noreply.github.com> Date: Sat, 22 Oct 2022 02:04:51 +0200 Subject: [PATCH] fix: min-original not saved (#1716) --- mealie/pkgs/img/minify.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mealie/pkgs/img/minify.py b/mealie/pkgs/img/minify.py index f6562d8c1263..0504a1bdf0d1 100644 --- a/mealie/pkgs/img/minify.py +++ b/mealie/pkgs/img/minify.py @@ -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)