Re: Fastest high-quality thumbnail display
Re: Fastest high-quality thumbnail display
- Subject: Re: Fastest high-quality thumbnail display
- From: James Merkel <email@hidden>
- Date: Sat, 30 Jul 2011 19:10:48 -0700
I tried ImageKit and it works great. Excellent quality. Thanks for
the suggestion, Scott.
I didn't have to do much more than change an NSImageView to an
IKImageView in InterfaceBuilder and the code.
However, there doesn't appear to be an easy way to print a CGImageRef
(which you get from an IKImageView) . So I figure for the printing
case, I'll just open the file again and create an NSImage.
Seems counterintuitive to open the file again, but its' probably
easier than converting a CGImageRef to an NSImage.
Interestingly, the quality of the printed NSImage is very good
compared to the screen rendition. Never understood why that is.
Jim Merkel
On Jul 30, 2011, at 8:12 AM, James Merkel wrote:
Thanks, I'll take a look at IK.
I also found an Apple example application called ImageApp. It seems
to work fine. No memory leaks.
The approach for using CIImage seems to be to draw directly to an
NSView rather than going to an NSImageView.
Jim Merkel
On Jul 29, 2011, at 11:46 PM, Scott Anguish wrote:
If you want to display many thumbnails (or images in general) why
not use the ImageKit?
It’s what it was designed for. Check out IK* files.
“The IKImageBrowserView class is a view for displaying and browsing
a large amount of images and movies efficiently.”
On Jul 25, 2011, at 3:04 PM, 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).
Should I be using the thumbnail capability of Image I/O? Will it
have as good a quality as CIImage, but be faster?
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.
Thanks for any help,
Jim Merkel
_______________________________________________
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:
@cocoadoc.com
This email sent to email@hidden
_______________________________________________
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