Why is exiftool not able to edit metadata but photo mechanic can?

Started by HotShot, July 01, 2025, 12:19:14 PM

Previous topic - Next topic

HotShot

I am going through some of my photos to remove some of the metadata i had added using photo mechanic. Certain things like description or comments, author ect that is found in the iptc and xmp table. But only retain the original metadata my Samsung s10 phone has added.

However, on some dng photos, I get this in exiftool gui

Warning: SubIFD BitsPerSample should have 3 values - 2023-05-23 - 11.23.48 - Camping Holiday 2023 - 20230523_112349.dng
Error: [minor] Undersized SubIFD StripByteCounts (359856 bytes, but expected 539784) - 2023-05-23 - 11.23.48 - Camping Holiday 2023 - 20230523_112349.dng

What I don't follow is that dng files are supposed to be non-destructive in editing, and it seems that maybe photo mechanic has done something to the metadata of the photos. When i have looked around, some people have stated It's something to do with Samsung phones doing something propriety to the photos or the photos are corrupted. But I can view and open them without issue. I have loaded the photos into photo mechanic and the xmp and iptc don't show up. I do know that the dng photos are stored as part of the jpg photo, as you can use raw+jpg when taking photos.

Is there such a fix for this, or quite what? I am using exiftool 13.31

Phil Harvey

You can ignore this minor error with a -m option, but you should check to be sure the image is OK afterwards because an error like this could potentially result in a corrupted image when the file is edited.

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