XMP-qg tags are not extracted

Started by itsjustvenky, November 16, 2016, 09:36:19 AM

Previous topic - Next topic

itsjustvenky

Hi, I am trying to extract tags from file using (sorry I am just a novice here)

exiftool -tagsfromfile source.jpg output.xmp

and this extracting all the data into xmp file, except "XMP-qg" tags.

But if I use

exiftool -tagsfromfile source.jpg -xmp output.xmp

now I see the "qg" tags (as it copies xmp packet), but I am missing some of "photoshop:" tags from output xmp.

I am enclosing the source file "ff.jpg".

So my question is, how to extract all the tags from this JPG file into xmp packet file. Can you please give the full command.

Thanks
Venkatesh

Phil Harvey

Hi Venkatesh,

If you copy the tags individually then ExifTool can only write the tags which are defined here.  User-defined tags must be created to write anything else.

If you copy the XMP as a block (with -xmp), the the XMP is copied verbatim.  There should be no missing XMP tags.  Your second command does this.

The "photoshop:" tags you are missing are not XMP.  In general, the Photoshop information can not be represented in XMP.

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

itsjustvenky

#2
Hi Phil,

Thanks once again for your response.

The QG namespace tags are from Quad Graphics company (so its custom).
So is there way I can extract all the tags including unknown/custom tags and write to XMP packet, in single command or multiple. please let me know.

Thanks
Venkat

Phil Harvey

Hi Venkat,

Quote from: itsjustvenky on November 16, 2016, 09:42:48 PM
So is there way I can extract all the tags including unknown tags and write to XMP packet, in single command or multiple.

What do you mean by "all the tags".  If you're talking about XMP only, then the question has been answered.  If you're talking about other types of tags too, then you must create user-defined XMP tags to receive all of the ones that don't already have counterparts in XMP.

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

itsjustvenky

Thank you so much Phil.
I have another question.

What is the exact use of these two options

---------
  -u          (-unknown)           Extract unknown tags
  -U          (-unknown2)          Extract unknown binary tags too
---------------

Phil Harvey

-U also generates unknown tags for any unknown bytes in binary data blocks of the maker notes.  There can be a large number of these for some camera models (eg. Canon, Nikon, Sony).

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