• 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: Getting NSBitmapImageRep from incomplete jpg files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Getting NSBitmapImageRep from incomplete jpg files
      • From: Jeremy Dronfield <email@hidden>
  • Prev by Date: Re: Thread and sleep
  • Next by Date: Re: Determining if it is the first time the application has launched?
  • Previous by thread: Getting NSBitmapImageRep from incomplete jpg files
  • Next by thread: Re: Getting NSBitmapImageRep from incomplete jpg files
  • Index(es):
    • Date
    • Thread