You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my apps I have to use the auto-rotate filter followed by the strip filter to prevent browsers from rotating the image again. I understand we don't want to strip all meta data by default, but after rotating the image, we should probably at least update its orientation attributes.
The text was updated successfully, but these errors were encountered:
If the engine is Imagick, resetting the orientation after rotating the image is easy:
if ($imageinstanceof \Imagine\Imagick\Image) {
$image->getImagick()->setImageOrientation(1);
}
But how about the other adapters? Gmagick doesn't have a "setImageOrientation" function, so we need to use an exif writer, but we only have a metadata reader. Any ideas?
mlocati
changed the title
Autorotate leaves original EFIX intact, so clients rotate image again
Autorotate leaves original EXIF intact, so clients rotate image again
Oct 6, 2021
In my apps I have to use the auto-rotate filter followed by the strip filter to prevent browsers from rotating the image again. I understand we don't want to strip all meta data by default, but after rotating the image, we should probably at least update its orientation attributes.
The text was updated successfully, but these errors were encountered: