Identify tiff file

Dear Sir/Madam
Actually I am working on the file formate here when I m trying to read the header of the Tiff File and the nef File we get the same information. Is there any link which help me to know what is the exact difference between the Tiff File format And the Raw NEF file format.
Or is there any link which tells me that how we identify that any image is in Tiff Format or in Raw NEF File format. here  i want to clear that I wants the link which tell me that how we identify that the image is in Tiff Format or in Nef Format by reading yhe header information not by there extension.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


As you no doubt know at this point, the NEF file format is a proprietary Nikon version of RAW output (i.e., the CCD output captured with minimal in-camera processing). Because it's proprietary, Nikon has not released much information on the format, so the information available is mostly from "hobbist" programmers (I put that word in quotes because most of them are doing the work as a labor of love, but they are experts in their fields).

You might take a look at and for some information on the NEF format and how it resembles and differs from TIF.


BTW, you might want to look at ImageMagick's "Identify" function and see if it can help you out here:
davinder101Author Commented:
Sorry but the link which u provide me may not help me in any of the way to know about what is the basci difference between the NEF file and the Tiff file because RAw Nef header also support the Tiff Format so it is difficult to know the image is a NEF image or thr Tiff image. Pls help me by provoding any link which clirify the actual difference between these two format.
I provided that link - it's the one from the website. There's additional information here:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.