Not removing EXIF now
This commit is contained in:
parent
fca317c45f
commit
aa15d17883
@ -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}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user