GNOME Bugzilla – Bug 555280
some gif files will not be open
Last modified: 2008-10-06 21:39:14 UTC
Please describe the problem: I have some gif files which where createt with an other application. GIMP get an error if I try to open these gif-files. Other grafic-programs (photoshop or photoline) open it without any errors! The error are: Error in reading DataBlock Ran off the end of my bits Das Öffnen von »G:\PCR Gelfotos\17HSD7\test.gif« ist fehlgeschlagen: Prozedur »file-gif-load« hat sich ohne Rückgabewerte beendet Steps to reproduce: 1. I have an example here. Will sent it to you. Tell me a way! Actual results: Expected results: Does this happen every time? Yes Other information: You can download a sample on this adress: http://www.rip-the-bones.de/test1.gif
Please attach a file to this bug report.
The image on http://www.rip-the-bones.de/test1.gif is *not* displayed by ImageMagick, eog and gthumb. So I guess the image is simply broken and that whatever program displays it is less strict in error checking.
Created attachment 120049 [details] It is on eof the pictures I can not open with GIMP
(In reply to comment #2) > The image on http://www.rip-the-bones.de/test1.gif is *not* > displayed by ImageMagick, eog and gthumb. So I guess the image is > simply broken and that whatever program displays it is less > strict in error checking. > Ok, I opend it with these programs: photoshop, photoline32, windows paint, opera-browser without errors Inkscape crashed while trying to import it. Maybe other programs are less strict. They give me the chance to "fix" the "simply broken" image. This is very usefull. But I prefer GIMP. So do you know a way to open it? Oh by the way, I try to open it with GIMP 2.4. It did it (but with showing me the errors on start). Greetings from Germany and thanks for your fast answer!
Created attachment 120052 [details] [review] patch that turns the fatal error into just a warning
I guess we should apply that patch to trunk. It makes the file load after throwing some warning messages.
If you are sure that this patch is safe, please go ahead.
2008-10-06 Sven Neumann <sven@gimp.org> * plug-ins/common/file-gif-load.c (GetCode): be more tolerant and continue loading with a warning message if there are bits missing at the end of the file. Fixes bug #555280.
It is great to see how fast you are react! Thanks a lot.