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

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
Pantek
Posts: 8
Joined: Thu Sep 19, 2024 10:39 am

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

Post 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?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

please send a sample file
Pierre.
Pantek
Posts: 8
Joined: Thu Sep 19, 2024 10:39 am

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

Post 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""
Pantek
Posts: 8
Joined: Thu Sep 19, 2024 10:39 am

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

Post 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/")
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

reopened
Pierre.
michaeljor
Posts: 1
Joined: Fri Mar 14, 2025 4:25 am

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

Post by michaeljor »

1.8.3 released but the bug is still not completely fixed? It really has a lot of problems to solve.
Micheal slope run
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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
Pierre.
Post Reply