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

Determining image file types


  • Subject: Determining image file types
  • From: Michael Becker <email@hidden>
  • Date: Thu, 10 Jun 2004 13:41:33 +0200

Hi!

How can I check a file whether it is a valid JPEG image?
Right now, my application only accepts images which end with a .jpg or .jpeg. But if somebody messes up the ending, for example rename a PhotoShop file "theImage.psd" to "theImage.jpg", it will be loaded into my application as well. Actually this is not so much a problem at first, because NSImage seems to deal with any kind of image, but my application has to make SURE that it only accepts JPEG.

Anybody knows how I do that?

Greetings,
Michael
_______________________________________________
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: Daniel Waylonis <email@hidden>
    • Re: Determining image file types
      • From: Freek Dijkstra <email@hidden>
  • Prev by Date: Re: Autocompletion
  • Next by Date: Re: newbie questions about objective-c, ruby, python, groovy and cocoa
  • Previous by thread: Re: Autocompletion
  • Next by thread: Re: Determining image file types
  • Index(es):
    • Date
    • Thread