Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autorotate leaves original EXIF intact, so clients rotate image again #467

Open
Richtermeister opened this issue Nov 5, 2015 · 1 comment

Comments

@Richtermeister
Copy link
Contributor

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.

@wasinger
Copy link
Contributor

wasinger commented Nov 1, 2018

If the engine is Imagick, resetting the orientation after rotating the image is easy:

if ($image instanceof \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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants