Why all these tags are added when adding ONLY DateTimeOriginal

Started by LaurentG, March 03, 2025, 02:54:02 AM

Previous topic - Next topic

LaurentG

Let's assume that image is originally free of any tag
I add to it ONLY DateTimeOriginal
   exiftool -DateTimeOriginal=20000101120000 image.jpg
As a result, the updated image contains all these tags (and not only the one added) :
[IFD0]     X Resolution
[IFD0]     Y Resolution
[IFD0]     Resolution Unit
[IFD0]     Y Cb Cr Positioning
[ExifIFD]  Exif Version
[ExifIFD]  Date/Time Original
[ExifIFD]  Components Configuration
[ExifIFD]  Flashpix Version
[ExifIFD]  Color Space

I'm sure there is a good reason for that... but I'd like to understand

ywzc

Those are mandatory tags by the Exif 2.32 spec (some of them are no longer mandatory in Exif 3.0). ExifTool adds those automatically with default values when writing exif information if they don't exist. This behavior can be disabled with the NoMandatory api option.

Phil Harvey

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

StarGeek

"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

LaurentG

Thank you very much to all 3 of you, for these detailed and commented explanations !

I'm using therefore the -api NoMandatory option