Alamofire / AlamofireImage

AlamofireImage is an image component library for Alamofire
MIT License
3.99k stars 523 forks source link

iOS 13 UIImage orientation problem #409

Open bvaillant-clgx opened 4 years ago

bvaillant-clgx commented 4 years ago

I'm Using AlamofireImage in one of my project sinceiOS13 I have a problem with UImage orientation.

In my project I'm downloading an image with "imageView.af.setImage(withURL:)". The original image is upside down with imageOrientation to .down.

In iOS12 the image is rotated automatically in the right orientation and shown correctly, but in iOS13, the image is upside down.

I did a sample project with only a UIImageView and got the same problem.

I also try to download the image manually and put it in the asset and the image is rotated correctly.

Alamofire Environment

Alamofire version: Alamofire (5.0.2), AlamofireImage (4.0.3) Xcode version: 11.3.1 Swift version: Swift 5 Platform(s) running AlamofireImage: iOS **macOS version running Xcode: 10.15.3

https://github.com/bvaillant-clgx/TestAlamofireImage