Determining image file types
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.