Not removing EXIF now

This commit is contained in:
Profitroll 2023-01-02 12:08:07 +01:00
parent fca317c45f
commit aa15d17883

View File

@ -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}")