Copying Epson scanner metadata

Started by Dalez, April 06, 2025, 03:12:29 AM

Previous topic - Next topic

Dalez

I have a scanner that is adding the following metadata to the scanned image:

About                          : uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b
FFMetaData                      : 02

or as a dump of the XMP data:

<?xml version="1.0"?>
<?xpacket begin='´╗┐' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description xmlns:prefix0="http://fastfoto.com/1.0/" rdf:about="uuid:faf5bdd5-ba3d-11da-ad31-d33d75182f1b">
      <prefix0:FFMetaData>03</prefix0:FFMetaData>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end='w'?>

How can I add/copy this to another file?

I have tried creating new entries/tags in the config file but I have not been successful in getting them written to the jpegs.

Thanks,
Dale.

Phil Harvey

Hi Dale,

You can copy the XMP as a block:

exiftool -tagsfromfile SRCFILE -xmp DSTFILE

This will overwrite any existing XMP in the destination file.

- 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 ($).

Dalez

Hi Phil,

Thank you, trivially simple. I did experiment with tagsfromfile but only to try to copy individual tags.

So... how easy/difficult is it to modify the contents of the FFMetaData tag?

-Dale

Phil Harvey

To write this tag is easy but you will need to use a config file.  See the sample config file for an example.

- 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 ($).

StarGeek

Here's a config file for you, though I'd suggest testing it to make sure it works with the scanner. I copy/pasted/edited it from another config file of mine and I think I got any copy/paste errors fixed.
# XMP-Prefix0.config
# Config file for Epson Fast Foto scanner
# https://exiftool.org/forum/index.php?msg=92492

%Image::ExifTool::UserDefined = (
#----------------------------------------------------
    # new XMP namespaces (eg. xxx) must be added to the Main XMP table:
    'Image::ExifTool::XMP::Main' => {

        prefix0 => { # <-- must be the same as the NAMESPACE prefix
            SubDirectory => {
                TagTable => 'Image::ExifTool::UserDefined::prefix0',
                # (see the definition of this table below)
            },
        },
#----------------------------------------------------
    },
);

#   XMP-prefix0 tag group
%Image::ExifTool::UserDefined::prefix0 = (
    GROUPS => { 0 => 'XMP', 1 => 'XMP-prefix0' },
    NAMESPACE => { 'prefix0' => 'http://fastfoto.com/1.0/' },
    WRITABLE => 'string', # (default to string-type tags)
    FFMetaData => { },
);

Save this as a config file in the same directory as exiftool and you could then use this command
exiftool -Config XMP-Prefix0.config -TagsFromFile Sourcefile.jpg -About -FFMetaData target.jpg
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Dalez

Thank you, it is working well.
The SubDirectory command you used in the config file is what my attempts lacked.