Removing tags from Makernotes

Started by BogdanH, February 09, 2012, 06:08:56 AM

Previous topic - Next topic

BogdanH

Hi Phil,

I'm just curious: how come, one can remove i.e. -SerialNumber tag from NEF Makernotes, but not from CR2?


My mistake... tag actually isn't removed from NEF, it's content is just set to "empty" by using:
exiftool -SerialNumber= MyPhoto.NEF
The same command for CR2 doesn't change anything.

Bogdan

Phil Harvey

Hi Bogdan,

You can't delete either.  Since the Nikon serial number is stored as a string, the -serialnumber= syntax works to set the serial number to an empty string.

However, Canon stores the serial number as an integer, so with CR2 images the closest equivalent would be -serialnumber=0

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

BogdanH

Hi Phil,

I didn't noticed your post when modifying my message. Thanks for answer.

Bogdan