I wrote this php.  I doesn't work, and I can't see why.  Apparently, all lines 
work until I try to use getValue or setValue.  I am not a php professional, 
but this one looked simple enough...

<?php 

error_reporting(E_ALL);

require_once('PelJpeg.php');
require_once('PelDataWindow.php');
require_once('PelTiff.php');
  
$jpeg = new PelJpeg
("/var/www/vhosts/esseninbeeld.be/httpdocs/fotoproject/fotos/fotogroot.jpg");

$exif = $jpeg->getExif();
$tiff = $exif->getTiff();
$ifd0 = $tiff->getIfd();
$desc = $ifd0->getEntry(PelTag::IMAGE_DESCRIPTION);
echo 'Beschrijving: '.$desc->getValue();
$desc->setValue('Nieuwe beschrijving');
file_put_contents
("/var/www/vhosts/esseninbeeld.be/httpdocs/fotoproject/fotos/fotogroot.jpg", 
$jpeg->getBytes());

?>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

Reply via email to