HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Strip image

← smushImages   solarizeImage →
Strips an image of all profiles and comments.

Example

$output = '';
$imagick = new \Imagick(realpath("../public/images/Biter_500.jpg"));
$bytes = $imagick->getImageBlob();
$output .= "Image byte size before stripping: " . strlen($bytes) . "<br/>";
$imagick->stripImage();
$bytes = $imagick->getImageBlob();
$output .= "Image byte size after stripping: " . strlen($bytes) . "<br/>";