Image-ExifTool - perl syntax to inject external XMP data into image files?

Posted on Thu Apr 24 20:13:10 2008 by stainsby
perl syntax to inject external XMP data into image files?
I found Phil's example from 2005 and have commandline syntax working just fine.
exiftool -xmp'<=../xmp/external.xmp' -o ./test/%f.%e .
When I fire ImageInfo I get exactly what I need to see. However, I cannot for the life of me see how to specify the exquivalent behaviour in the perl scripts I am setting up. My current guess runs something like this:
my $exif = Image::ExifTool->new(); $exif->SetNewValuesFromFile( $xmpfn, 'XMP:*' ); $exif->WriteInfo( $fn );
Clarification? Anyone? Erik
Direct Responses: 7757 | Write a response