Re: Getting NSBitmapImageRep from incomplete jpg files
Re: Getting NSBitmapImageRep from incomplete jpg files
- Subject: Re: Getting NSBitmapImageRep from incomplete jpg files
- From: email@hidden (Heinrich Giesen)
- Date: Tue, 18 Jan 2005 18:02:29 +0100
On 18.01.2005, at 17:43, Jeremy Dronfield wrote:
I'm working on a application which creates thumbnails from image files.
- - - -
However, I run into problems with image files which are incomplete.
(Typically, these are images which have been incompletely downloaded
from the web.)
I know of these images, (premature end of file) one of them I have
cannot
be shown by PreviewApp or GraphicConverter or Finder. Some aps can show
them:
Safari (but strangely stretched), ToyViewer, RealPlayer (!), and my
image handling
apps can also do it. This is because I do not use the NSBitmapImageRep
class
for loading jpeg-images, but the free jpeg library of the independent
jpeg group.
My advice: try to use this library from http://www.ijg.org/
You can load lib and sources from several places, e.g.
http://macosx.forked.net/showcat.php?cat=Libraries&sortmethod=reverse
(Be warned, using the lib is not a simple job.)
You could also try to only read the thumbnail image, if it exists in the
APP1 data, which also is not straightforward.
Good luck.
(for further questions please email me, maybe I can give more specific
help)
--
Heinrich Giesen
email: email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden