Skip to content

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