Warning: No writable tags set from

Started by inclusivetech, January 11, 2023, 09:15:09 PM

Previous topic - Next topic

Phil Harvey

Try this:

./exiftool -r -d %s -tagsfromfile "%d/%F.json" "-subject+<*ResultTagsTagEn" "-keywords+<*ResultTagsTagEn" -sep ", " -ext "*" -overwrite_original -progress --ext json "PathToImages"

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

inclusivetech

The test batch looks like this.  No tags were applied.

======== D:/Unstable Diffustion/Images/Women_Only/Batch2/Women_only_18481.jpg [13/13]
Warning: Shift value for XMP-pdf:Subject is not a number - D:/Unstable Diffustion/Images/Women_Only/Batch2/Women_only_18481.jpg.json

inclusivetech

This is coming up on other exiftool commands that were known working.  I'll see if I can find out what changed. Your change makes sense to me that it should just work.

Phil Harvey

I can't figure out how to get that warning, but it is expected that "+<" doesn't work for XMP-pdf:Subject (because it isn't a list-type tag).  To avoid the warning, change -subject to -xmp-dc:subject

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

inclusivetech

I am not exactly sure why.. This works. added -smp-dc: and changed +< to <

but it works.  Thanks!

#apply tags to images revised
./exiftool -r -d %s -tagsfromfile "%d/%F.json" "-xmp-dc:subject<*ResultTagsTagEn" "-keywords<*ResultTagsTagEn" -sep ", " -ext "*" -overwrite_original -progress --ext json "Path_To_Images"

Phil Harvey

Using "<" instead of "+<" will overwrite existing values in the case that XMP-dc:Subject already exists in the 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 ($).