Oooops, that was not a strange thing. I solved for me.
I hav put it in the interlace option/function, that it's enabled by me.
/zp-core/lib-Imagick.php
[code]if ($interlace) {
$im->setInterlaceScheme(Imagick::INTERLACE_JPEG);
$im->stripImage();
}[/code]
Works.
The actual copying of this metadata is done in the zp_resampleImage() function.
foreach ($src_image->getImageProfiles() as $name => $profile) { $dst_image->profileImage($name, $profile); }
If you don't want the exif in any resized images just delete (or comment out) those lines. However you might want to consider leaving in the ICC profile. Someday browsers might even pay attention to it.
@sbilliard, thanks for the hint. There is a little bit more complicated. I have read the stripImage() manual befor put it in the code and this was not a final solution.
- Extract the ICC profile
- Strip EXIF data and image profile
- Add the ICC profile back
In the comments: http://php.net/manual/de/imagick.stripimage.php