• 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
Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?


  • Subject: Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
  • From: David Duncan <email@hidden>
  • Date: Mon, 2 Mar 2009 09:12:39 -0800

On Mar 1, 2009, at 11:46 PM, Florian Soenens wrote:

Actually we are just looking for the fastest way of creating a 72 dpi image (thumbnail) of our original 400 dpi image.
It seemed that CGImageSourceCreateThumbnailAtIndex was the fastest way to do this.


The thumbnail image isn't guaranteed to be of any particular DPI (unless the image source is PDF). If you want an image at a particular DPI, then I would get the image properties dictionary via CGImageSourceCopyPropertiesAtIndex() to get the size and DPI of the image, then use that value to calculate an appropriate value for the kCGImageSourceThumbnailMaxPixelSize key.
--
David Duncan
Apple DTS Animation and Printing


_______________________________________________

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


References: 
 >Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels? (From: Florian Soenens <email@hidden>)

  • Prev by Date: Re: enabling Edit menu items in a modal window?
  • Next by Date: Re: Optimizing, uiview caching, and clearing that cached view.
  • Previous by thread: Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
  • Next by thread: Anyone used kCFStreamSSLCertificates and kCFStreamPropertySSLPeerCertificates
  • Index(es):
    • Date
    • Thread