Directory as Tags

Started by Dark_L, March 07, 2022, 06:11:49 AM

Previous topic - Next topic

Dark_L

Quote from: StarGeek on March 17, 2022, 10:45:19 AM
Quote from: Dark_L on March 17, 2022, 07:37:58 AM
Thank you for this, it helped me a lot. The only thing is that i would like to leave alll the tags in the Files as well.

I don't understand.  You want to remove all tags but leave all tags?

I want to remove all the metadata except the tags i manually added myself.

StarGeek

Place the tags after the -TagsFromFile option as I showed you here with AllDates.  If you want to add tags in the same command, place them after the -All=.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Dark_L

Do I understand correctly that I have to add every single Tag to the Command? Isn´t there something like -AllDates but for the Tags?

StarGeek

I think there might be a understanding here.  Tags are the names of the various metadata.  When you run Exiftool -s file.jpg, you get a list of tag names and their values.  For example, in this output, everything in the left column is a tag
C:\>exiftool -s y:\!temp\Test4.jpg
ExifToolVersion                 : 12.39
FileName                        : Test4.jpg
Directory                       : y:/!temp
FileSize                        : 438 KiB
FileModifyDate                  : 2002:11:23 04:52:03-08:00
FileAccessDate                  : 2022:03:19 11:12:27-07:00
FileCreateDate                  : 2022:02:04 08:25:49-08:00
FilePermissions                 : -rw-rw-rw-
FileType                        : JPEG
FileTypeExtension               : jpg
MIMEType                        : image/jpeg
XMPToolkit                      : Image::ExifTool 12.39
Description                     : Description
Rights                          : Rights
Headline                        : Description  Rights
ImageWidth                      : 1749
ImageHeight                     : 1205
EncodingProcess                 : Baseline DCT, Huffman coding
BitsPerSample                   : 8
ColorComponents                 : 3
YCbCrSubSampling                : YCbCr4:2:0 (2 2)
ImageSize                       : 1749x1205
Megapixels                      : 2.1


Some of these tags are embedded data, such as Headline, Description, and Rights in the above output.  Others are properties of the underlying file system (FileModifyDate, FilePermissions) and others are properties of the image itself (ImageWidth, ImageHeight, BitsPerSample).  File system type tags can usually be edited but not removed.  Property type tags cannot be changed without actually editing the image.

Any embedded tag you want to keep in the file needs to be placed after the -TagsFromFile @ option.

Quote from: Dark_L on March 19, 2022, 12:52:19 PM
Do I understand correctly that I have to add every single Tag to the Command? Isn´t there something like -AllDates but for the Tags?

Which takes me back to "You want to remove all tags but leave all tags?"
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Dark_L

In DigiKam you can Tag your Pictures with any text you want to. I want to keep those text bits and remove everything else.

StarGeek

See FAQ #3.  Figure out which tags digikam is using and add those after the -TagsFromFile option.

But none of those tags are required for displaying the picture which is the question I was answering.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).