Re: Package Proposal: File_JPEG

From: Date: Wed, 14 May 2003 20:11:35 +0000
Subject: Re: Package Proposal: File_JPEG
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16263@lists.php.net to get a copy of this message
So... no comments on this proposal? Sebastian Delmont wrote:
In light of all the discussion regarding my previous attempt with this package, and all the discussion about the DICOM package, I would like to propose again with a different name:
      File_JPEG (cetegory: File Formats)
It allows you to manipulate the contents of a JPEG file, including reading and writing metadata information like EXIF and IPTC. You can take a look at the source code here: http://www.zonageek.com/software/files/php/JPEG.php-0.1.txt Sample usage would look like: require_once 'File/JPEG.php'; $jpeg =& new JPEG('images/photos001.jpg'); echo $jpeg->getExifField("ApertureValue"); echo $jpeg->getIPTCField("Caption"); $jpeg->setIPTCField("Byline", "Sebastian Delmont"); $jpeg->save("images/photos001-bis.jpg"); The current version doesn't provide decoding or encoding of the image data itself, but that could be added in the future. The class implements full parsing and generation of the JFIF image format (that's the formal name of what we all know as JPGs), EXIF data, Adobe Data and IPTC Data. The current code works and has been tested, but lacks documentation. I would probably do a beta release first until I get some feedback and meanwhile work on the docbook docs. Regards, Sebastian Delmont


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