Subtracting values from tags

Started by aazimmy12, June 15, 2022, 05:22:02 PM

Previous topic - Next topic

aazimmy12

I am trying to subtract a number from a tag and have been using exiftool -tag-=90 image.JPG but it will not work.

StarGeek

See the -TAG[+-^]=[VALUE] option.

...  += and-= are used to add or remove existing entries from a list, or to shift date/time values (see Image::ExifTool::Shift.pl and note 6 below for more details). += may also be used to increment numerical values (or decrement if VALUE is negative), and -= may be used to conditionally delete or replace a tag...

The first and last part details what you can do with -=.  It can remove an item from a list type tag, shift a date/time value negatively, or conditionally remove/replace a tag.

As per the middle part, you would use += with a negative number to subtract from a numbered value.
exiftool -tag+=-90 file.jpg
"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