Project

General

Profile

Deleting the makernotes with exiv2.exe

Added by Anonymous Poster over 12 years ago

Hi,
I am using exiv2.exe v0.18 both in Windows Vista and XP.
I have been using JPG pictures taken with 2 different camera models:
Canon PowerShot G6
Olympus u1030SW

I have been trying to delete the Exif.Photo.MakerNote.

dosprompt> exiv2 -M"del Exif.Photo.MakerNote" mypicture.jpg

If the picture is taken with Canon, I get errors on some pictures, not all:
Error: Directory Canon: Next pointer is out of bounds; ignored.
Error: Directory Canon: Next pointer is out of bounds; ignored.

If taken with Olympus, the warnings are like:
Warning: Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.
Warning: Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

In both cases the result is same: the Exif.Photo.MakerNote is not deleted, when
checking with:
dosprompt> exiv2.exe -pt mypicture.jpg

However if I do the following 2 steps to the picture:
dosprompt> exiv2.exe -M"del Exif.Image.Make" mypicture.jpg
Here are get the same errors and warnings as mentioned above for both pictures.
Result is that the Exif.Image.Make is deleted from the picture.

dosprompt> exiv2.exe -M"del Exif.Photo.MakerNote" mypicture.jpg
No errors or warnings here and as as result the makernote has been deleted from the pictures.

Am I trying to delete the makernotes in the wrong way or is this a bug ?

Best regards

*Jussi Virtanen


Replies (4)

RE: Deleting the makernotes with exiv2.exe - Added by Andreas Huggel over 12 years ago

Hi Jussi,

I have been trying to delete the Exif.Photo.MakerNote.

dosprompt> exiv2 -M"del Exif.Photo.MakerNote" mypicture.jpg

Yes, this one needs to be removed, but that's not sufficient. Exiv2 will reconstruct the makernote from the decoded makernote tags (Exif.Canon*.* or Exif.Olympus*.*) if there are any.
You need to remove all of these as well.

If the picture is taken with Canon, I get errors on some pictures, not all:
Error: Directory Canon: Next pointer is out of bounds; ignored.
Error: Directory Canon: Next pointer is out of bounds; ignored.

If taken with Olympus, the warnings are like:
Warning: Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.
Warning: Directory OlympusCs, entry 0x0101: Strip 0 is outside of the data area; ignored.

You can ignore these errors and warnings. They just mean that the makernote structures are not 100% valid TIFF structures.

However if I do the following 2 steps to the picture:
dosprompt> exiv2.exe -M"del Exif.Image.Make" mypicture.jpg
Here are get the same errors and warnings as mentioned above for both pictures.
Result is that the Exif.Image.Make is deleted from the picture.

Exiv2 uses the Exif.Image.Make tag to determine the makernote type. If there is no such tag, it is not able to decode the makernote. In other words, if you run exiv2 -pt after this, you'll notice that there are no decoded Makernote tags anymore. That's why now it is sufficient to delete the Exif.Photo.MakerNote tag.

-ahu.

RE: Deleting the makernotes with exiv2.exe - Added by Anonymous Poster over 12 years ago

Hi,
Thanks for the quick reply.

In the original mail my original intent was not really clear.
What I want to achieve is deleting all the tags that are decoded as part of the Makernote.
(so exactly the result of the deletion command after the Exif.Image.Make is deleted)

I got the impression reading information about makernotes that Exif.Photo.MakerNote is basicly a "chunk of data",
which is decoded depending on the value of Exif.Image.Make. By deleting the Exif.Photo.MakerNote I would infact
delete the whole data chunk and thus all the manufacturer specific tags inside it.

I would not like to start listing each and every tag that are olympus or canon specific in
the deletion command. Already tried to use wildcards in the deletion but the exiv2 didnt support them.
Is there any other user friendly way (except deleting first the Exif.Image.Make) ?

Best Regards,
*Jussi Virtanen

RE: Deleting the makernotes with exiv2.exe - Added by Andreas Huggel over 12 years ago

I would not like to start listing each and every tag that are olympus or canon specific in
the deletion command. Already tried to use wildcards in the deletion but the exiv2 didnt support them.
Is there any other user friendly way (except deleting first the Exif.Image.Make) ?

No, there isn't, you've found the quickest way.

-ahu.

RE: Deleting the makernotes with exiv2.exe - Added by Steve Wright about 10 years ago

I realize this is a very old thread, but in case anyone's wondering whether or not this (deleting Exif.Photo.MakerNote) works with other Exif errors, it does with one, specifically "Directory Iop ... considered invalid; not read".

So it turns out there IS a workaround for the issue on http://uk.groups.yahoo.com/group/exiv2/message/158?var=1&p=1 after all.

-SW

    (1-4/4)