myang-git / iOS-Image-Crop-View

A view that allows user to select the cropping area in an image
383 stars 78 forks source link

Stretched Crop Area #36

Closed im-jersh closed 8 years ago

im-jersh commented 8 years ago

I have this installed in a Swift 2.1 project. I have a view controller subclass and it's view's class is set to ImageCropView. Whenever I set the view.image with a landscape image everything seems to work just fine. However, when I set the view.image with a portrait image, the crop area stretches the cropped area to make it appear taller than the original.

im-jersh commented 8 years ago

This appears to be an issue with imageView's contentMode. I submitted a pull request with a fix