PDA

View Full Version : exif and php


blinking8s
19th of October 2004 (Tue), 23:35
anyone have any information on canons exif data in php (20d)?

unfortunately each digital camera maker has a different idea of how to actually tag their images...so all tje info is whack and i am trying to figure out how canon has made their settings different so i can fix the script...

thanks

tommykjensen
20th of October 2004 (Wed), 00:11
Send Pekka a PM, he use exif data in his exihibit engine.

alan sh
20th of October 2004 (Wed), 01:21
Try here for starters ?

http://www.burren.cx/david/canon.html

I know some of the info is wrong (I am working on this too) but it may be a start.

Alan

blinking8s
20th of October 2004 (Wed), 03:12
thats cool...

i posted on a photoblog forum and got a helpful reply

Make a new php file, call it exif-info.php or whatever you like.

<?php

$all_exif = exif_read_data(test.jpg,0,true);

print_r($all_exif);

?>

That file will take the test.jpg image and spit out all, I mean all information that's available for a pickup.

Try to see what variables that's in there.
What camera do you use?
What information does it get wrong?

tommykjensen
20th of October 2004 (Wed), 03:54
thats cool...

i posted on a photoblog forum and got a helpful reply

Make a new php file, call it exif-info.php or whatever you like.

<?php

$all_exif = exif_read_data(test.jpg,0,true);

print_r($all_exif);

?>

That file will take the test.jpg image and spit out all, I mean all information that's available for a pickup.

Try to see what variables that's in there.
What camera do you use?
What information does it get wrong?


Nice, I can actually also use that myself :wink:

tommykjensen
20th of October 2004 (Wed), 10:08
Here is a little better script to list all the tags in the exif data

<?php
echo "test1.jpg:<br />\n";
$exif = exif_read_data('test.JPG', 'IFD0');
echo $exif===false ? "No header data found.<br />\n" : "Image contains headers<br />\n";

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

alan sh
20th of October 2004 (Wed), 10:17
OK - stupid question - what is php ?

Alan

tommykjensen
20th of October 2004 (Wed), 10:32
PHP is a script language used to generate dynamic webpages. This forum You are using is written in PHP.

PHP is a very powerfull language.

blinking8s
20th of October 2004 (Wed), 11:32
look at the link for this page, it says .php in it, everything generated to make this forum work is from a set of php scripts, its some cool stuff, just really tricky at first...

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Then you get into the technical side with databases, which generally you use mysql as ou db for php...blah blah yadda yadda