exif data on jpegs

Messages
27
Reaction score
0
Location
Columbus, OH, US
I was thinking of coding a photo gallery for my pictures (most likely in PHP, if it matters) on the web and was wondering if anyone knew how to extract the exif data from the jpeg files? Most likely the pictures will be shot in RAW and converted to jpeg in C1. After that, is the exif data still embedded in the file? Anyone know how to extract that from the jpeg? (for example, how pbase extracts the exif on their albums)
 
Tim,

I was going to ask pretty much the same question. With my Nikon 995 the software used to download the pic from camera and copy the exif info into the "Caption" field. This is very useful as it can be displayed by Photoshop in it's automated web page generation. I don't suppose anyone knows how to automatically copy exif data into the caption field?

Thanks

Andy
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
Andy,

Well, I'm not sure what the caption field is or does... I'm assuming you mean it'll show up when you're making web pages in dreamweaver or another editor. This isn't exactly my question, however. I was wondering if anyone (and this may be a long shot) knew how to extract this data using PHP or a similar programming language on the fly. There must be a way, I'm sure pBase has method similar to one I'm thinking of.

Tim
I was going to ask pretty much the same question. With my Nikon 995
the software used to download the pic from camera and copy the exif
info into the "Caption" field. This is very useful as it can be
displayed by Photoshop in it's automated web page generation. I
don't suppose anyone knows how to automatically copy exif data into
the caption field?

Thanks

Andy
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
Run a search for Exif here in the forums. It will turn up a few programs and some links to Exif specifications.
Well, I'm not sure what the caption field is or does... I'm
assuming you mean it'll show up when you're making web pages in
dreamweaver or another editor. This isn't exactly my question,
however. I was wondering if anyone (and this may be a long shot)
knew how to extract this data using PHP or a similar programming
language on the fly. There must be a way, I'm sure pBase has method
similar to one I'm thinking of.

Tim
I was going to ask pretty much the same question. With my Nikon 995
the software used to download the pic from camera and copy the exif
info into the "Caption" field. This is very useful as it can be
displayed by Photoshop in it's automated web page generation. I
don't suppose anyone knows how to automatically copy exif data into
the caption field?

Thanks

Andy
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
I don't know about PHP, but jhead is public-domain and written in C. Source code is here:
http://www.sentex.net/~mwandel/jhead/

You should also make sure you include the new XMP format that Photoshop CS is now using. PBase does not yet include XMP support, and I'm not happy about Adobe unilaterally deciding EXIF was obsolete.

Of course, instead of reinventing the wheel, you could just use something like DAlbum:
http://www.delx.ca/dalbum/index.php?folder=/

A google search for php & exif returned 56,700 hits...
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
You should also make sure you include the new XMP format that
Photoshop CS is now using. PBase does not yet include XMP support,
and I'm not happy about Adobe unilaterally deciding EXIF was
obsolete.

Of course, instead of reinventing the wheel, you could just use
something like DAlbum:
http://www.delx.ca/dalbum/index.php?folder=/

A google search for php & exif returned 56,700 hits...
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
Here is a link to ExifTool. It is a Perl script that looks like what you are looking for.

http://owl.phy.queensu.ca/~phil/exiftool/
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
Thank you all very much. Great help. Also, in case anyone's interested, someone replied in the PC Tools forum with this snippet of code (in PHP)

$exif = exif_read_data ('filename.jpg',0,true);
foreach($exif as $key=> $section) {
foreach($section as $name=> $val) {
echo "$key.$name: $val\n";
}
}?>

Haven't tried it yet, but don't see why it wouldn't work.

Again, thanks,
Tim
http://owl.phy.queensu.ca/~phil/exiftool/
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
It looks like a function is missing. Specifically I do not see the exif_read_data function listed below. (Unless PHP has it built into it already)
$exif = exif_read_data ('filename.jpg',0,true);
foreach($exif as $key=> $section) {
foreach($section as $name=> $val) {
echo "$key.$name: $val\n";
}
}?>

Haven't tried it yet, but don't see why it wouldn't work.

Again, thanks,
Tim
http://owl.phy.queensu.ca/~phil/exiftool/
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 
Apparently it is built-in to PHP - as long as the right options are compiled into the PHP engine:
http://us2.php.net/manual/en/ref.image.php
$exif = exif_read_data ('filename.jpg',0,true);
foreach($exif as $key=> $section) {
foreach($section as $name=> $val) {
echo "$key.$name: $val\n";
}
}?>

Haven't tried it yet, but don't see why it wouldn't work.

Again, thanks,
Tim
http://owl.phy.queensu.ca/~phil/exiftool/
I was thinking of coding a photo gallery for my pictures (most
likely in PHP, if it matters) on the web and was wondering if
anyone knew how to extract the exif data from the jpeg files? Most
likely the pictures will be shot in RAW and converted to jpeg in
C1. After that, is the exif data still embedded in the file? Anyone
know how to extract that from the jpeg? (for example, how pbase
extracts the exif on their albums)
 

Keyboard shortcuts

Back
Top