Page 1 of 1

XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Tue Nov 05, 2024 8:53 pm
by Pantek
Got some gifs from internet, they can't be opened in XnView MP 1.8.2 (Error: "File Can't be loaded!") and in Classic 2.51.7 (Error: "GIF : Bad code's size !")
There are a lot of those gifs, they are from adult site, so I have sent one to your email (there is no nudity, etc., but just in case...).
Browsers (FireFox, Chrome) open it fine. Photoshop can open it. Another image Viewer that starts with "Ir..." opens it fine too.

What I did notice. If you open that GIF in any text editor or HEXeditor you will see a commentary block there at the beginning of the file.
And I noticed that one word there contains weird symbol:

Code: Select all

Type: GIF anяimation
the symbol after "an...". HEX editor says it is not an UTF-8 symbol ("Invalid code unit"), and other symbols are (maybe that is the case? Maybe XnView can't handle non-UTF-8 symbols in commentary block?)

If I delete that symbol in HEXeditor, and save the file - it can be opened in XnView fine now.

You can say that the problem is with that person(s) who did those gifs, but other programs understand those GIFs fine.

Another thing. I have tried to create animated gif (Ulead Gif Animator) and add there a comment.
The comment block were added to the end of the file (not to the beginning)
And I tried to implement that non-UTF symbol there via Hex editor - XnView was able to open this file.
So there are to thing combined that XnView doesn't like? Comment at the beginning with non-UTF symbols?

Re: XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Wed Nov 06, 2024 9:55 am
by xnview
please send a sample file

Re: XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Thu Nov 07, 2024 5:35 pm
by Pantek
xnview wrote: Wed Nov 06, 2024 9:55 am please send a sample file
I e-mailed you with the title "attachment to bug report "XnView MP 1.8.2 and Classic too - Some GIFs can't be opened""

Re: XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Fri Nov 15, 2024 10:19 pm
by Pantek
So 1.8.3 came out. There is "3428: [Bug] GIF with unknown extension block " in changelog. Is it for this problem?

1) Now XNviewMP can open that gif, but there is no animation (and it should be, but I can list frames manually)
2) As I mentioned, there are a lot of that kind of gifs - they are still can't be opened. But now without any Error. When I try to open it - I can see the first frame for a short time and then XnView jumps to next file in the folder :shock:

And interesting fact. That gif I emailed you (problem GIF.gif) as I mentioned can be opened but there is no animation. But if you rename that gif to the name that shown in its' info block - then animation returns (see the name by opening that gif in any Text Editor, and the name would be everything after "Website: https://im9.eu/animation/")

Re: XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Thu Nov 21, 2024 12:30 pm
by xnview
reopened

Re: XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Fri Mar 14, 2025 4:30 am
by michaeljor
1.8.3 released but the bug is still not completely fixed? It really has a lot of problems to solve.

Re: XnView MP 1.8.2 and Classic too - Some GIFs can't be opened

Posted: Fri Mar 14, 2025 7:00 am
by xnview
michaeljor wrote: Fri Mar 14, 2025 4:30 am 1.8.3 released but the bug is still not completely fixed? It really has a lot of problems to solve.
Send sample files