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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to