• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIImage to jpeg results change between 32-bit & 64-bit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: UIImage to jpeg results change between 32-bit & 64-bit
      • From: Michael Crawford <email@hidden>
  • Prev by Date: Re: UIAlertView won't set password field as first responder
  • Next by Date: Re: UIAlertView won't set password field as first responder
  • Previous by thread: Re: UIAlertView won't set password field as first responder
  • Next by thread: Re: UIImage to jpeg results change between 32-bit & 64-bit
  • Index(es):
    • Date
    • Thread