Posted on 2006-06-30 20:42:02-07 by roels
Error: Bad format (0) for IFD0 entry 0
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:

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 and 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.
Direct Responses: 2566 | Write a response
Posted on 2006-07-01 12:02:17-07 by exiftool in response to 2565
Re: Error: Bad format (0) for IFD0 entry 0
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)

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.
Direct Responses: 2573 | Write a response
Posted on 2006-07-03 20:08:23-07 by roels in response to 2566
Re: Error: Bad format (0) for IFD0 entry 0
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.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.