Re: Fastest high-quality thumbnail display
Re: Fastest high-quality thumbnail display
- Subject: Re: Fastest high-quality thumbnail display
- From: Mike Abdullah <email@hidden>
- Date: Mon, 25 Jul 2011 23:58:32 +0100
On 25 Jul 2011, at 20:04, James Merkel wrote:
> What is the fastest way to generate and display a thumbnail from a digital camera file?
> In the past I used NSImage -- however the quality (with JPEG files) leaves something to be desired. Now I am using CIImage with Lanczos scale transform -- quality is very good but it is slow (particularly with raw files).
Lanczos is high quality and slow, no way around that.
>
> Should I be using the thumbnail capability of Image I/O? Will it have as good a quality as CIImage, but be faster?
Yes, you should be using it. It won't be as high quality as CIImage though.
>
> I am comparing the speed of my app (running in Xcode) with the speed of Preview. Preview is much faster ( 2x or 3X). I wonder what they are doing.
>
> Of course the fastest way to display a thumbnail is to use the thumbnail in the file (assuming there is one). But that's the problem, there may not be a thumbnail in the file, in which case you need to create one yourself.
That's exactly what ImageIO offers you; the ability to use embedded thumbnail if present.
_______________________________________________
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