exiftool -tagsfromfile in Perl API

Started by marjue, February 11, 2013, 05:54:16 AM

Previous topic - Next topic

marjue

Hi

How can i do this in Perl

exiftool -tagsfromfile src.jpg "-exif:all>exif:all" dst.jpg

There is no command to do this or am i blind?

Thanx for help
Marcus

Phil Harvey

Hi Marcus,

This is the way to do it:

    $exifTool->SetNewValuesFromFile('src.jpg', 'exif:all>exif:all');
    $exifTool->WriteInfo('dst.jpg', 'modified_dst.jpg');


- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

marjue