Page 1 of 1

reading in image metadata

Posted: Thu Sep 14, 2006 8:25 pm
by elbeeble
Im working on creating a large database for my brother to store all of his images. I want to create a web frontend using php. He is a photography student using a Nikon D70, so the images he wants to store are in the .NEF RAW image format that Nikon uses. Is there a way to extract the metadata that is stored with the images using php so that I can insert it into tables in the database. Thanks for any help.

Posted: Thu Sep 14, 2006 8:30 pm
by wtf

Posted: Thu Sep 14, 2006 8:35 pm
by feyd
I am unable to find a file specification for the NEF file format. So I can only guess that there may be some EXIF header data.

http://php.net/ref.exif

wrong file format

Posted: Thu Sep 14, 2006 10:05 pm
by elbeeble
Ok, so I talked to my brother a little more. He is actually storing his photos with the .dng file format, which was created by Adobe. I am going to do some searching around to see if I can find some ways to access the metadata that is stored for this format, but if anyone knows of any ways, I would appreciate the help. Thanks

Posted: Thu Sep 14, 2006 10:13 pm
by feyd
The file specification for dng can be found here. Files of this format may contain TIFF-EP/EXIF tags, XMP tags or IPTC tags as metadata. I am only aware of the EXIF reading extension for PHP. So if your brother uses either of the others, you won't be able to read squat unless you can find libraries for reading those types of metadata.