From aa15d17883399774c782299895e9a78957bf025b Mon Sep 17 00:00:00 2001 From: profitroll Date: Mon, 2 Jan 2023 12:08:07 +0100 Subject: [PATCH] Not removing EXIF now --- extensions/photos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/photos.py b/extensions/photos.py index 0af1a84..e3c2aae 100644 --- a/extensions/photos.py +++ b/extensions/photos.py @@ -29,10 +29,10 @@ async def compress_image(image_path: str): size_before = path.getsize(image_path) / 1024 - system(f"exiftool -overwrite_original -all:all= -tagsFromFile @ -exif:Orientation {image_path}") + # system(f"exiftool -overwrite_original -all:all= -tagsFromFile @ -exif:Orientation {image_path}") if image_type == "image/jpeg": - system(f"jpegoptim {image_path} -o --max=55 -p") + system(f"jpegoptim {image_path} -o --max=55 -p --strip-none") elif image_type == "image/png": system(f"optipng -o3 {image_path}")