ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: pajaro on September 28, 2016, 04:18:36 PM

Title: Bad format (0) for IFD2 entry 0
Post by: pajaro on September 28, 2016, 04:18:36 PM
Hello, this is my first time here...
I am trying to remove all date and time info from an image using commands:
-overwrite_original_in_place
-alldates=
{Files}

but I keep getting the following error message:

Warning: [minor] Entries in IFD2 were out of sequence. Fixed.
Error: Bad format (0) for IFD2 entry 0
    0 image files updated
    1 files weren't updated due to errors

ExifToolGUI generates numerous error messages, e.g.: Bad IFD2 offset for tag 0x0003; Bad IFD2 offset for tag 0x0003; Bad format (8224) for IFD2 entry 5; Bad format (22064) for IFD2 entry 10; [Minor] Too many warnings -- IFD2 parsing aborted (did not copy all of them).

I used these commands in the past without problems and I do not understand what is going on now. Any help will be greatly appreciated.

Thanks,

Pavel.
Title: Re: Bad format (0) for IFD2 entry 0
Post by: Phil Harvey on September 28, 2016, 09:44:29 PM
Hi Pavel,

There is a problem with the image in question.  It has been corrupted somehow.

What type of file is this?  JPEG, TIFF?

- Phil
Title: Re: Bad format (0) for IFD2 entry 0
Post by: pajaro on September 29, 2016, 02:07:47 AM
Quote from: Phil Harvey on September 28, 2016, 09:44:29 PM
Hi Pavel,

There is a problem with the image in question.  It has been corrupted somehow.

What type of file is this?  JPEG, TIFF?

- Phil

Hi Phil,

Thanks, this is a JPEG file and in fact it seems that I have many files taken over a period of several months affected by the same problem. Would a sample image help you? I found a workaround, though - I was able to remove all metadata; this worked without problems.
Title: Re: Bad format (0) for IFD2 entry 0
Post by: Phil Harvey on September 29, 2016, 07:59:50 AM
You can rebuild the metadata of the image to fix this problem.  See FAQ 20 (https://exiftool.org/faq.html#Q20) for more information.

- Phil
Title: Re: Bad format (0) for IFD2 entry 0
Post by: pajaro on September 29, 2016, 09:16:48 AM
Quote from: Phil Harvey on September 29, 2016, 07:59:50 AM
You can rebuild the metadata of the image to fix this problem.  See FAQ 20 (https://exiftool.org/faq.html#Q20) for more information.

- Phil

Thanks, I will give it a try.

Pavel.