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

fix auto rotate #476

Merged
merged 1 commit into from
Aug 19, 2014
Merged

fix auto rotate #476

merged 1 commit into from
Aug 19, 2014

Conversation

plandolt
Copy link
Contributor

I faced 2 problems getting the images rotated correctly when directly uploaded by my iphone (reported from other phones like android too).

  1. The method call defined in imagine.xml on the liip_imagine alias did not work. When compiling the DI there were no added method call.
  2. The picture form my iphone hat the orientation saved under the key ifd0.Orientatio and not as hardcoded under exif.Orientation

With the provided solution my directly uploaded pictures get autorotated correctly.

}
}

return null;
} else {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not related to this PR .. but I guess the else isn't needed if we always return in the if

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if is for old version of imagine bundle. but no idea if the else part is working as it should.

@lsmith77
Copy link
Contributor

looks good to me with the minor comments. ping @makasim @havvg

@plandolt
Copy link
Contributor Author

changed the assignment to be before the condition

makasim added a commit that referenced this pull request Aug 19, 2014
@makasim makasim merged commit b577c2d into liip:master Aug 19, 2014
@makasim
Copy link
Collaborator

makasim commented Aug 19, 2014

thanks

@plandolt plandolt deleted the fix-auto-rotate branch August 19, 2014 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants