I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2009-06-16 18:41:50-07 by loloeroket
Error: Bad format (0) for IFD0 entry 0
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:

exiftool -photoshop:Xresolution=300 -photoshop:Yresolution=300 -jfif:Xresolution=300 -jfif:Yresolut +ion=300 -Xresolution=300 -Yresolution=300 -XYResolution=300 -exif:Xresolution=300 -exif:Yresolutio +n=300 -f -overwrite_original_in_place -v2 error.JPG


Here is the output:

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
Direct Responses: 10986 | Write a response
Posted on 2009-06-17 10:50:27-07 by exiftool in response to 10979
Re: Error: Bad format (0) for IFD0 entry 0
Hi Laurent,

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

- Phil
Direct Responses: Write a response