Re: [PHP] Re: IPTC image comments utility

2004-02-12 Thread Paul Furman
Andy Crain wrote:

This might help:
http://pear.php.net/package/Image_IPTC
Andy
Thanks, I don't know why I didn't find that. No documentation though and 
some unfamiliar stuff with @ and references to other commands which I 
guess this replaces (not sure). If so I can't figure out how to run the 
thing. Below is some snippage from the code trying to get at how to use 
it. I'm still interested in whether I can get the perl module to run 
with PHP, it sounds like it may be a bit more reliable. I've got perl 
loaded but don't know how to use it.


* This class encapsulates the functions iptcparse() and iptcembed(). It 
provides
* the necessary methods for extracting, modifying, and saving IPTC data with
* image files (JPEG and TIFF files only).

class Image_IPTC

var $_sFilename = null;

var $_aIPTC = array();
* The IPTC fields that were extracted from the image
* or updated by this class.
var $_bIPTCParse = false;
* set to true if the APP header data could be obtained.
iptcparse (places where I saw this)
http://us4.php.net/iptcparse
function Image_IPTC( $sFilename )
   $this->_aIPTC = @iptcparse($aAPP['APP13']);
   $this->_bIPTCParse = true;
function isValid()
return $this->_bIPTCParse;
function getAllTags()
return $this->_aIPTC;
  * An array of IPTC fields as it extracted by iptcparse()
iptcembed (places where I saw this)
http://us4.php.net/iptcembed
one comment refers to the Image::IPTCInfo Perl module
-undocumented, some serious compatibility problems, improper format
function save( $sOutputFile = null )
$sImageData = @iptcembed($sIPTCBlock, $this->_sFilename, 0);
function output()
@iptcembed($sIPTCBlock, $this->_sFilename, 2);


Paul Furman wrote:

OK this looks like the thing:
http://multipart-mixed.com/photo/iptc.html
It's a perl module. Can I use that in PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: IPTC image comments utility

2004-02-12 Thread Andy Crain
This might help:
http://pear.php.net/package/Image_IPTC
Andy

> -Original Message-
> From: Paul Furman [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 12, 2004 7:36 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: IPTC image comments utility
> 
> OK this looks like the thing:
> http://multipart-mixed.com/photo/iptc.html
> It's a perl module. Can I use that in PHP?
> 
> Paul Furman wrote:
> 
> > Does anyone know of a utility for WRITING or at least reading IPTC data
> > in images with PHP? I found lots of EXIF utilities and did an
> > experimental thing with that. PHP even has a built in EXIF reader but
> > the only IPTC utilities I've found are expensive ActiveX or Delphi
> > components and I don't even know if those could be operated by PHP. THe
> > one I used worked at a command line & I just did a shell command with a
> > constructed syntax.
> >
> > Here's some stuff I dug up:
> >
> >
> > COMIPTC 900 Euros
> > http://www.j2s.net/EN/Products/comiptc.html
> > Works with Visual Basic, ASP or PHP
> > Matches Photoshop format
> > Works on JPEG, TIFF, PSD
> >
> > TIPTC Delphi $566.60
> > <http://www.atom5.com/Development/Components-Libraries-for-Delphi/tiptc-
> delphi-component-to-read-and-write-iptc-data-from-jpeg-tiff-files-
> 2620.html>
> >
> > JPEG/TIFF
> > source code in pure Delphi code
> >
> > Atalasoft dotImage $329-$999
> > http://www.atalasoft.com/Components/dotImage
> > C# ActiveX component .NET compatible
> > many features
> >
> > AiS EXIF ActiveX $25-$99 (server)
> > http://www.watermarker.com/exif-iptc-gps/
> > ActiveX component for Win9X/ME/NT/2k/XP
> > Visual Basic, Delphi, C++, ASP, ASPX, PHP.
> > EXIF, IPTC for JPEG/TIFF
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: IPTC image comments utility

2004-02-12 Thread Paul Furman
OK this looks like the thing:
http://multipart-mixed.com/photo/iptc.html
It's a perl module. Can I use that in PHP?
Paul Furman wrote:

Does anyone know of a utility for WRITING or at least reading IPTC data 
in images with PHP? I found lots of EXIF utilities and did an 
experimental thing with that. PHP even has a built in EXIF reader but 
the only IPTC utilities I've found are expensive ActiveX or Delphi 
components and I don't even know if those could be operated by PHP. THe 
one I used worked at a command line & I just did a shell command with a 
constructed syntax.

Here's some stuff I dug up:

COMIPTC 900 Euros
http://www.j2s.net/EN/Products/comiptc.html
Works with Visual Basic, ASP or PHP
Matches Photoshop format
Works on JPEG, TIFF, PSD
TIPTC Delphi $566.60
 

JPEG/TIFF
source code in pure Delphi code
Atalasoft dotImage $329-$999
http://www.atalasoft.com/Components/dotImage
C# ActiveX component .NET compatible
many features
AiS EXIF ActiveX $25-$99 (server)
http://www.watermarker.com/exif-iptc-gps/
ActiveX component for Win9X/ME/NT/2k/XP
Visual Basic, Delphi, C++, ASP, ASPX, PHP.
EXIF, IPTC for JPEG/TIFF
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php