3

I'd like to optimize jpg image size by deleting exif metadata from it. I use Imagick and Imagine libraries to achieve this goal:

$image = $this->imagine->open($currentImagePath);

$iccProfile = $image->palette()->profile();

$image->strip();

$image->profile($iccProfile);

$image->save($optimizedImagePath);

But it doesn't work properly, it actually deletes all metadata from image including icc. Is there a way to delete just exif from jpg image using Imagine and Imagick?

t1maccapp
  • 323
  • 7
  • 16
  • You could write a simple program to do it. – user3344003 Oct 03 '16 at 15:03
  • Possible duplicate of [How to remove exif from a JPG without losing image quality?](https://stackoverflow.com/questions/13646028/how-to-remove-exif-from-a-jpg-without-losing-image-quality) – Jo. Sep 11 '17 at 17:12

0 Answers0