ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:37 AM

Title: Error: Bad format (0) for IFD0 entry 0
Post by: Archive on May 12, 2010, 08:54:37 AM
[Originally posted by loloeroket on 2009-06-16 18:41:50-07]

Hi Phil,

I m getting the error "Error: Bad format (0) for IFD0 entry 0" while executing the following instruction. It works usually perfectly but I am getting this error for some of the files:

Code:
exiftool -photoshop:Xresolution=300 -photoshop:Yresolution=300 -jfif:Xresolution=300 -jfif:Yresolution=300 -Xresolution=300 -Yresolution=300 -XYResolution=300 -exif:Xresolution=300 -exif:Yresolution=300 -f -overwrite_original_in_place -v2 error.JPG

Here is the output:

Code:
Writing Photoshop:XResolution
Writing Photoshop:YResolution
Writing JFIF:XResolution
Writing JFIF:YResolution
Writing JFIF:XResolution
Writing Photoshop:XResolution
Writing XMP-tiff:XResolution if tag exists
Writing IFD0:XResolution
Writing JFIF:YResolution
Writing Photoshop:YResolution
Writing XMP-tiff:YResolution if tag exists
Writing IFD0:YResolution
Writing FotoStation:XYResolution if tag exists
Writing IFD0:XResolution
Writing IFD0:YResolution
======== error.JPG
Rewriting error.JPG...
  Editing tags in: APP0 APP1 APP13 FotoStation IFD0 JFIF Photoshop XMP
  Creating tags in: APP0 APP1 APP13 IFD0 JFIF Photoshop
JPEG APP0 (14 bytes):
  Rewriting JFIF
    - JFIF:YResolution = '72'
    + JFIF:YResolution = '300'
    - JFIF:XResolution = '72'
    + JFIF:XResolution = '300'
JPEG APP13 (4206 bytes):
  Rewriting Photoshop
  Rewriting IPTC
    [nothing changed]
  Rewriting IPTC
    [nothing changed]
JPEG APP1 (23830 bytes):
  Rewriting IFD0
  ExifByteOrder = II
  Warning = [minor] Entries in IFD0 were out of sequence. Fixed.
  Error = Bad format (0) for IFD0 entry 0
Warning: [minor] Entries in IFD0 were out of sequence. Fixed. - error.JPG
Error: Bad format (0) for IFD0 entry 0 - error.JPG
    0 image files updated
    1 files weren't updated due to errors

If you need I can email you the file for further investigation.

Thanks,

Laurent
Title: Re: Error: Bad format (0) for IFD0 entry 0
Post by: Archive on May 12, 2010, 08:54:37 AM
[Originally posted by exiftool on 2009-06-17 10:50:27-07]

Hi Laurent,

There is a format error in this file.  If you email it to me, I can give
you the details.

- Phil