Image-ExifTool - Re: exiftool can hang on corrupt jpeg

Posted on Fri Nov 24 20:15:33 2006 by exiftool in response to 3616 (See the whole thread of 4)
Re: exiftool can hang on corrupt jpeg
Thanks for this bug report, however I'm not sure I am able to reproduce this error. When I try writing to the specified JPEG, I get the following:

exiftool a.jpg -exif:xresolution=1 Use of uninitialized value in numeric eq (==) at lib/Image/ExifTool/Writer.pl line 3076. Error: Corrupted JPEG image - a.jpg 0 image files updated 1 files weren't updated due to errors

It doesn't hang (or even crash), but it does produce an unwanted run-time error that could be avoided. I have prepared a 6.58 pre-release version which avoids this error and uploaded it here.

If this solves your problem, great. Otherwise, please give me a more specific example of what the command line that is giving you problems and I should be able to sort it out.

- Phil
Direct Responses: 3623 | Write a response