UIImage to jpeg results change between 32-bit & 64-bit
UIImage to jpeg results change between 32-bit & 64-bit
- Subject: UIImage to jpeg results change between 32-bit & 64-bit
- From: David Brittain <email@hidden>
- Date: Wed, 22 Apr 2015 16:18:59 -0700
In our app we create a UIImage and set its scale. It is then saved to
a jpeg using UIImageJPEGRepresentation(image, 0.8);
I am converting the app to 64-bit and the generated image has junk in
the ppi block of the resulting jpeg. Below are examples of the data
(output using ImageMagick identify) from an iPad Air 2 (I see similar
behavior in the Simulator comparing the results from iPad Retina &
iPad Air)
32-bit build:
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 2048x1536+0+0
Resolution: 376.736x376.736
Print size: 5.43617x4.07713
Units: PixelsPerInch
64-bit build:
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 2048x1536+0+0
Resolution: -1x-1
Print size: -2048x-1536
Units: PixelsPerInch
Any suggestions appreciated for workarounds/solutions.
Thanks
Dave
--
David Brittain
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden