Package Proposal: IPTC Parser Class

From: Date: Mon, 31 Mar 2003 22:50:52 +0000
Subject: Package Proposal: IPTC Parser Class
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14740@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()); ?> I would like to contribute the code under the PHP License. If you have any questions or need additional information, feel free to contact me. 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 (#14740) next »