Exiftool -Artist Output without FileSource

Started by Garrett, November 17, 2017, 02:08:49 PM

Previous topic - Next topic

Garrett

Using the following code:
C:\exiftool.exe -Artist Dir

Provides the following output:

======== E:/File1.jpg
Artist                          : username1
======== E:/File2.jpg
Artist                          : username2
    1 directories scanned
    2 image files read


Ideally the output would look like:
username1_username2

or

username1
username2


Does anyone know some options to remove the SourceFile from the output?

StarGeek

"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

Garrett

@StarGeek - thank you sir! You have provided assistance for this project on stackoverflow as well, thanks for the support!

Can you take this one step further and explain how -s3 works? I see that -s[NUM]     (-short)  = Short output format but don't understand the number system.

Thanks again!

StarGeek

Heh, skipping between your question here and on stackexchange.

From the docs on the -s option:

-s1 or -s        - print tag names instead of descriptions

Normally, exiftool will print the description of the tag rather than the tag name.  Most of the time it's just a case of removing the spaces to get the tag name, e.g. "Image Description" vs "ImageDescription".  But sometimes there's more of a difference, such as the Composite "Create Date" description vs. the actual tag name of "SubSecCreateDate".

-s2 or -s -s     - no extra spaces to column-align values

This removes the extra spaces that usually try to make the output look nicer in addition to the above setting:
Create Date                     : 2002:02:02 02:02:02+04:00
vs
SubSecCreateDate: 2002:02:02 02:02:02+04:00

-s3 or -s -s -s  - print values only (no tag names)

Removes the tag names altogether, just the tag output.
2002:02:02 02:02:02+04:00
"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