• 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 format of NSImageRep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determining format of NSImageRep


  • Subject: Re: determining format of NSImageRep
  • From: Sherm Pendley <email@hidden>
  • Date: Mon, 24 Mar 2003 21:26:26 -0500

On Monday, March 24, 2003, at 07:49 PM, John C. Randolph wrote:

The best way I can think of to know what kind of image format is in the NSData object is to look for the known headers of various image types. (JFIF, etc.)

A great way to do that is magic. Seriously - check out the /etc/magic file, and get a description of its format and use in the man page "man magic". There, you'll find a metric boatload of "magic numbers" that can be used to identify a file's contents.

sherm--

C programmers never die - they're just cast into void.
_______________________________________________
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 format of NSImageRep
      • From: Seth Delackner <email@hidden>
References: 
 >Re: determining format of NSImageRep (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: IB framework
  • Next by Date: policy question
  • Previous by thread: Re: determining format of NSImageRep
  • Next by thread: Re: determining format of NSImageRep
  • Index(es):
    • Date
    • Thread