Image_IPTC
| From: | Leonie J Price | Date: | Sat, 16 Dec 2006 23:40:50 +0000 |
| Subject: | Image_IPTC | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-26146@lists.php.net to get a copy of this message | ||
Does anyone on this list have any experience using this class?
I need to be able to add IPTC tags to images. I used this code:
function holdIPTCcode($path) {
$oIPTC =& new Image_IPTC($path);
$oIPTC->setTag("reference_number", 22);
$oIPTC->save($path);
}
I found that it had the effect of totally hosing the EXIF data. Not good.
All the examples I have found take all the image information and then save it to a new file. I simply want to add a tag to the old image.
Any help would be greatly appreciated.