0

A jpg is rendered upside down on my mac but correctly in a safari browser on the same mac. What is the orientation data that is not correctly being read? Is it in the EXIF?

Oak Bytes
  • 4,649
  • 4
  • 36
  • 53
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460

1 Answers1

0

Here's how to display it with the correct orientation

  if (image.imageOrientation != UIImageOrientationUp)
  {            
    image = [UIImage 
              imageWithCGImage: image.CGImage 
              scale: 1 
              orientation: UIImageOrientationUp];
  }

based on an answer by ravin Save UIImage, Load it in Wrong Orientation

Community
  • 1
  • 1
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460