Hello guys,

I'm very new to OOP and PEL is really scares me. I'm trying to read GPS data
from photos, but I can't.

I'm trying this:

$file = "/home/re/gps1.jpg";
$data = new PelDataWindow(file_get_contents($file));

$jpeg = new PelJpeg();
$app1 = $jpeg->getExif();
$tiff = $app1->getTiff();

$ifd0 = $tiff->getIfd();
$entry = $ifd0->getEntry(PelTag::GPS_LONGITUDE);

print "Longitude: ".$entry;

But I get nothing. What am I doing wrong?

Another question is how can I easy add Exiff data, even if JPEG file doesn't
have any Exif data in it? Is there any PHP sample that shows how can I do
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
PEL-devel mailing list

Reply via email to