Reading ratio or size and writing directly into keywords

Started by readingpicture, August 16, 2022, 08:35:18 AM

Previous topic - Next topic

readingpicture

Hi,
is it possible to read image size data first and immediatly wrinting back the info as keywords?
I figured out how to set keywords manually but would like to get it automatically for every picture.
Thanks

exiftool -overwrite_original -sep "," -Subject-="5000x3000" -Subject+="5000x3000" _3400757.xmp

StarGeek

See FAQ #17.

The command will be slightly different depending upon if you're overwriting any existing keywords or adding to the existing keywords.  I'm going to assume the latter, as that is the most common operation.

Try this command
exiftool -AddTagsFromFile @ "-Subject+<ImageSize" /path/to/files/

This will copy the ImageSize into Subject without overwriting in previous tags.  It also uses AddTagsFromFile instead of simply TagsFromFile just in case you want to copy other items into Subject with the same command.
"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