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();
$jpeg->load($data);
$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
it?
-------------------------------------------------------------------------
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
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel