Error: Bad format (0) for IFD0 entry 0

Started by Archive, May 12, 2010, 08:53:55 AM

Previous topic - Next topic

Archive

[Originally posted by roels on 2006-06-30 20:42:02-07]

Hi There,

When I want to transfer the exif info from a canon .cr2 raw file into the already (by ufraw) converted jpg file I get the following errors:

Code:
roel@brera:~/data/canon$ exiftool -l -tagsfromfile img_0642.cr2 jpg/img_0642.cr2.jpg
Error: Bad format (0) for IFD0 entry 0 - jpg/img_0642.cr2.jpg
    0 image files updated
    1 files weren't updated due to errors

I don't get what could be wrong, the commandline seems allright and both the files also.

I am using ExifTool version 6.26

The mentioned files are available at:

http://roel.net/tmp/img_0642.cr2" target="_blank">http://roel.net/tmp/img_0642.cr2 and http://roel.net/tmp/img_0642.cr2.jpg" target="_blank">http://roel.net/tmp/img_0642.cr2.jpg

(it's just some dutch sheep, nothing special ;-).

Hope someone can help me out here.

thanks!

Roel.

Archive

[Originally posted by exiftool on 2006-07-01 12:02:17-07]

Hi Roel,

The first entry in IFD0 of the JPEG image is truly invalid as ExifTool indicates.  You should submit a bug report to ufraw since this is clearly a bug.

ExifTool will refuse to edit information which has a problem like this, so the only thing you can do is delete the EXIF and start again.  ie)

Code:
exiftool -exif:all= img_0642.cr2.jpg
exiftool -tagsfromfile img_0642.cr2 jpg/img_0642.cr2.jpg

- Phil

BTW, the -l option you were using changes the output format when reading information and has no effect when writing.

Archive

[Originally posted by roels on 2006-07-03 20:08:23-07]

Hi Phil,

Indeed that seems to be the trick (workaround), I can also convert the .cr2 files with ufraw without the --exif option, think that will help also.

I will file a bugreport to ufraw this week, since that's the base of the problem.

Thanks,

Roel.