reading in image metadata

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
elbeeble
Forum Newbie
Posts: 2
Joined: Thu Sep 14, 2006 7:07 pm

reading in image metadata

Post 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.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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
elbeeble
Forum Newbie
Posts: 2
Joined: Thu Sep 14, 2006 7:07 pm

wrong file format

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply