Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
- Subject: Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?
- From: Florian Soenens <email@hidden>
- Date: Mon, 2 Mar 2009 08:46:02 +0100
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.
I am not expecting an image larger than the original but the docs say
that it could be as large as the image itself if you don't pass
kCGImageSourceThumbnailMaxPixelSize as a key, which is not the case.
What i noticed now is if i do pass kCGImageSourceThumbnailMaxPixelSize
and give it a value larger than the original image, my thumbnail is
the size of the image itself, if you don't pass it, it maxes out at
5000 pixels.
Perhaps there are other solutions to our goal but i think they will be
slower.
Kind regards,
Florian.
On 27 Feb 2009, at 20:27, David Duncan wrote:
On Feb 27, 2009, at 1:12 AM, Florian Soenens wrote:
i'm trying to use this function in one of our tools and we noticed
that it maxes out at 5000 pixels.
The documentation says that if you do not specify
kCGImageSourceThumbnailMaxPixelSize the width and height of a
thumbnail is not limited and thumbnails may be as big as the image
itself.
In our case the outcoming image is always 5000 pixels wide, even
though the original width was over 5000 pixels.
Anyone has any clue on this, i googled but found nothing relevant?
I would say that this level of behavior is undefined, if your
looking for a thumbnail, then your implying to the API that you are
expecting an image no larger than the original - which is what you
are getting. Could you better explain what you are trying to do?
--
David Duncan
Apple DTS Animation and Printing
Looking for Web-to-Print Solutions?
Visit our website : http://www.vit2print.com
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights.
If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof.
We may monitor e-mail to and from our network.
NSS nv Tieltstraat 167 8740 Pittem Belgium
_______________________________________________
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