|
Hi Erik,
Your script will copy the tags individually from the
XMP file, but the command line set the value of the
"XMP" tag from the data of the file. ie)
my $exif = Image::ExifTool->new();
my $data;
open FILE, $xmpfn or die;
read FILE, $data, 1000000 or die;
close FILE;
$exif->SetNewValue( 'XMP', $data );
$exif->WriteInfo( $fn );
Of course, this code imposes an arbitrary restriction
of 1000000 bytes on the size of the XMP file -- this was
done just to simplify the example.
- Phil
|