gavinbunney / Toucan

Fabulous Image Processing in Swift
MIT License
2.44k stars 224 forks source link

Fix image dimensions for rotated images (left or right) #18

Closed djtarazona closed 9 years ago

djtarazona commented 9 years ago

It looks like the image dimensions are swapped for left or right orientated images. I get stretched/scaled images after calling resizeImage when the image orientation is left, left mirrored, right, or right mirrored (for example, images from the device camera in portrait orientation). This seemed to fix the issue.

If we could get another v3 release as well, that would be great. Here are my changes for v3.

gavinbunney commented 9 years ago

Thanks for the fix!

yxhcjar

(though I do believe you :smile: )

gavinbunney commented 9 years ago

Released v0.4.3 with the fix applied - should appear in cocoapods soon enough

gavinbunney commented 9 years ago

I've applied the fix to the v0.3.3 tag as well; since the Xcode 7 GM is out - I can't push it to cocoa pods... but if you need to you can point at the tag: https://github.com/gavinbunney/Toucan/tree/0.3.3