Where does File::Comment come from?

Started by Mac2, November 28, 2014, 12:34:30 PM

Previous topic - Next topic

Mac2

Hi,

I have a JPEG file which contains an EXIF::userComment (user comment), and also IPTC:caption (IPTC caption). But exiftool -G1 -all:all also lists a

[File]  Comment : Embedded comment (File Comment)

where does this data come from? It's not EXIF, not IPTC, not XP, not XMP and I could not find any documentation on the File group (the File group is mentioned in tag groups but not in tag names).


Phil Harvey

The file group is specific to the format of file being read.  In JPEG files, it is a JPEG Comment (the "COM" JPEG segment).  In GIF files, it is a GIF Comment.  But just to be inconsistent, in a PNG file it is reported as PNG:Comment.

It is separate from EXIF, IPTC and 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 ($).

Mac2

Hi, Phil

thanks for the info (and for fixing the invalid XML output problem!).

So far I thought I could skip the [File] group completely when importing data from ExifTool. I was under the impression that most of the tags are just dupes of info I gather elsewhere anyway. Now it seems that I need to import at least the comment from that group. Or not, because only one user ever complained about this tag...

Phil Harvey

I would have thought that ImageWidth and ImageHeight were important to most people...

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

Mac2

Sure. But my application imports images, videos and other files as it's main task, I have the info about the file name, size, last modified timestamp, dimensions etc. already. This is why I could skip [File] so far.

Phil Harvey

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

Mac2

Is there a list of the tags in the [File] group? The group is not listed on the standard "tag group" page.

Phil Harvey

These are found in the Extra tags documentation.

Note that the System tags are also in the family 0 "File" group.

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

Mac2

Very good. I played with this a bit and the embedded JPEG comment tag shows up in the Extra::Comment tag, but only when I no longer add the --file:all when importing data.

The [File] group seems to be required in order to fill (at least some) of the [Extra] tags? So far I only imported Extra::Warning and Extra::Error, which are filled even if [File] is excluded. I have now removed the --file:all in my import ARGS file and added the Comment to the list of Extra tags my software does not skip when copying into the database. Now the Extra::Comment is filled.

Phil Harvey

I think there is some confusion.

There is no "Extra" group.  The Extra table lists a collection of tags from other groups.  The specific groups that they belong to are listed in the table.

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

Mac2

Sorry, mix of terms. Extra table. File group. Got it.