Questions to delete PreviewImage

Started by herb, October 03, 2022, 06:44:46 AM

Previous topic - Next topic

herb

Hello Phil,

I am working with ExifTool 12.46 on my Windows 10 system.

I usually work with *.jpg images created by an Olympus camera.
So these images have a ThumbnailImage and also a PreviewImage.

After deleting the PreviewImage (and only this) I get for -validate the following warning:
Warning: [minor] MakerNotes:PreviewImageLength is zero

This shows that ExifTool has properly updated this MakerNotes tag.

But my question is: can the warning be avoided, because the PreviewImage has been removed properly.
Thanks in advance

Best regards
herb

Phil Harvey

Hi Herb,

The preview is likely in the maker notes.  From the exiftool documentation:

            2) In general, MakerNotes tags are considered "Permanent", and may
            be edited but not created or deleted individually.  This avoids
            many potential problems, including the inevitable compatibility
            problems with OEM software which may be very inflexible about the
            information it expects to find in the maker notes.


So when you try to delete this, ExifTool just edits it to write a preview of 0 length to avoid causing problems in the maker notes.

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

herb

#2
Hello Phil,

thanks for your reply
But I think we have a misunderstanding.

After deleting/removing the PreviewImage
- value zero for MakerNotes:PreviewImageLength is OK

As far as I know, the PreviewImage is part of the trailer.
So it would be fine when the warning message is suppressed (if possible).

Best regards
herb

Phil Harvey

I see.  Suppressing that warning would be ugly, and I don't think it would be worth patching the code for this.

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

herb

Hello Phil,

yes I see/understand. It is ok for me.

Thanks for your comments.
Best regards
herb