Skip to content

Instantly share code, notes, and snippets.

@jmoz
Last active September 26, 2015 22:28
Show Gist options
  • Save jmoz/1169074 to your computer and use it in GitHub Desktop.
Save jmoz/1169074 to your computer and use it in GitHub Desktop.
Imagick stripImage
<?php
$file = '/home/moz/Desktop/canon-ixus.jpg';
$i = new Imagick($file);
print_r($i->getImageProperties('exif:*'));
$i->stripImage();
$i->writeImage($file . '2');
$i->readImage($file . '2');
print_r($i->getImageProperties('exif:*'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment