Getting IPTC data

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
danielmauch

Getting IPTC data

Post by danielmauch »

Hi

I want to get the IPTC data like:

Code: Select all

identify -format "%[IPTC:2:120]" filename.jpg


but how do I get it in php?

Code: Select all

$im = new Imagick($filename);
$im->getImageFormat() ;
echo $im;
Does not work?!

Daniel
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Getting IPTC data

Post by mkoppanen »

check Imagick::getImageProfile() and getImageProperty
Mikko Koppanen
My blog: http://valokuva.org
Post Reply