Need 1 more vote for Image_IPTC class

From: Date: Mon, 07 Apr 2003 22:58:00 +0000
Subject: Need 1 more vote for Image_IPTC class
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15005@lists.php.net to get a copy of this message
I would like to (also) contribute an IPTC parsing class that abstracts the iptcparse() and iptcembed() functions. The class's source can be viewed at: http://www.townnews.com/contrib/IPTC.html The class abstracts the retrieving and setting of IPTC field tags. It supports multi-tagged values, such as those found in the 'keywords' section of an IPTC header. The class basically works like this: <?php $oIPTC =& new Image_IPTC("test.jpg"); echo "The original caption was: "; echo $oIPTC->getTag(IMAGE_IPTC_CAPTION); echo "<br />"; $oIPTC->setTag(IMAGE_IPTC_CAPTION, "An example caption."); $oIPTC->setTag(IMAGE_IPTC_KEYWORDS, "Keyword 1", 0); $oIPTC->setTag(IMAGE_IPTC_KEYWORDS, "Keyword 2", 1); $oIPTC->save("output.jpg"); print_r($oIPTC->getAllTags()); ?> If you have questions, comments, or suggestions about the aforementioned message, you can respond by replying to this message or contacting us at (309)-743-0800. Thank you. Regards, Patrick O'Lone Internet Software Engineer TownNews.com (309)-743-0809 polone@townnews.com

« previous php.pear.dev (#15005) next »