• 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: Determining image file types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining image file types


  • Subject: Re: Determining image file types
  • From: Freek Dijkstra <email@hidden>
  • Date: Thu, 10 Jun 2004 14:44:37 +0200

On 10-06-2004 13:41, "Michael Becker" <email@hidden> wrote:

> How can I check a file whether it is a valid JPEG image?

I do not know if there is a nice and clean Cocao method to do this.
However, if there is not, I recommend to look at the file signature.
I'm sure the standard is on the web somewhere -- you should look for "JFIF"
somewhere in the first bytes. Be sure that if you decide to choose this
approach to support all types of JPEG files. I recall there is a new
formatl, JPEG 2000, and you may either explicitly decide to or not to allow
that format. (And if you don't find the specs, have a look yourself with
GraphicConvertor and a simple HexEditor).

Regards,
Freek
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Determining image file types
      • From: Robert Cerny <email@hidden>
References: 
 >Determining image file types (From: Michael Becker <email@hidden>)

  • Prev by Date: Re: Probably a silly question but...
  • Next by Date: Re: two things (newbie)
  • Previous by thread: Determining image file types
  • Next by thread: Re: Determining image file types
  • Index(es):
    • Date
    • Thread