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

Orientation normalisation before cropping/merging #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kanunnikau
Copy link

Hello
I'm not sure whether this issue appeared only in recent versions of iOS, as I have not tested anything but 9.x. Yet now this method is not working correctly for rotated images - 'applyTintEffectWithColor:atFrame:'.
Frame is applied correctly, to a correct part to an image. But then it is stretched incorrectly and inserted into a wrong position. Please see screenshot for example:
http://take.ms/BPlY8
Left side is correct (fixed) highlight.
Right side takes an originally rotated image (captured by the camera 'on the side'), crops desired area, blurs it, but then stretches it incorrectly and inserts into wrong position.

I fixed this by 'normalising' image first - translating into OrientationUp, if it's not already.
Original code is doing this again implicitly later on, when two images are merged, thus forcing OrientationUp any way.

Does it make sense to merge this fix and release a Pod update?

Btw, thank you for the library :)

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.

1 participant