On 24 Aug 2006 at 6:25, Dotan Cohen wrote:

> I have a bunch of pictures that I need to copy IPTC data from one
> field to another. I understand that the "mogrify" command can do this,
> but I cannot get it to do what I need (I'm no computer guru). I need
> the IPTC feild #118 ( $iptc["2#118"][0] in PHP ) to be copied to the
> IPTC feild #025 ( $iptc["2#025"][0] in PHP ). What command would do
> that on hundreds of photos in a recursive directory structure? I've no
> bash experience but I know enough php to look at it and understand it.
> I'm on a Kubuntu system with an AMD Duron processor and a gig of RAM,
> if that is relevant. Thanks in advance.
> 

Anthony is correct, writing the whole jpeg data back just to update 
the IPTC is going to cause un-necessary degradation of the image. 

I am not expert with PHP but I know there are modules that do work 
with IPTC but without a complete read of the documentation I am not 
sure if it will re-calculate the jpeg data. 

I know of a perl module, Image::JPEG::Metadata, that will write data 
into the IPTC/XMP/Abobe APP13 block without touching the jpeg data 
stream. Also mentioned on this list in the past was Exiftool but I am 
not familiar with this module. 

PHP resource:
http://www.ozhiker.com/electronics/pjmt/

Good Luck.
Dp.

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to