Hi,
I'm trying to write UserComment but pel don't do it..

this is my php code

//-------------------------------------------------

$img = 'my_images_path';

require_once('pel/PelJpeg.php');

$jpeg = new PelJpeg($img);

$ifd0 = $jpeg->getExif()->getTiff()->getIfd();

$artist = $ifd0->getEntry(PelTag::ARTIST);

$artist->setValue('Edited by PEL');

$comment = new PelEntryUserComment();

$comment->setValue('Edited by PEL');

file_put_contents($img, $jpeg->getBytes());

//-------------------------------------------------

with this code I write Artist Information but no UserComment... WHY?
What I'm missing ??

thanks.
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
PEL-devel mailing list
PEL-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pel-devel

Reply via email to