0.99.0: Some animated PNGs fail to open

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, helmut, xnview, Dreamer

Post Reply
woot000
Posts: 36
Joined: Thu Nov 19, 2020 12:36 am

0.99.0: Some animated PNGs fail to open

Post by woot000 »

XnView MP 0.99.0 (64 bit)
OS: Windows 10 (64 bit)

Certain types of animated PNGs, specifically those with transparent pixels and those optimized with apngopt fail to open when they previously opened on XnView MP 0.98.4.

This can easily be reproduced by converting an animated GIF to an animated PNG using ffmpeg, or optimizing an existing animated PNG using apngopt.

To reproduce: Create an animated PNG using one of these methods, and open it with XnView MP 0.99.0.

This will output a file that opens on XnView MP 0.99.0, but transparency is lost:

Code: Select all

ffmpeg -i animated.gif -f apng -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" animated.png
This will output a file that fails to open on XnView MP 0.99.0:

Code: Select all

ffmpeg -i animated.gif -f apng -filter_complex "[0:v] split [a][b];[a] palettegen=reserve_transparent=on [p];[b][p] paletteuse" animated.png
This will output a file that fails to open on XnView MP 0.99.0, regardless of whether the image has transparent pixels or not:

Code: Select all

 apngopt -z2 -i15 animated.png animated_opt.png
All of the files output from these programs should open fine, but most instead display a prompt which reads "File cannot be loaded!"
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.99.0: Some animated PNGs fail to open

Post by xnview »

could you post a apng?
Pierre.
woot000
Posts: 36
Joined: Thu Nov 19, 2020 12:36 am

Re: 0.99.0: Some animated PNGs fail to open

Post by woot000 »

Here's some APNGs, three out of four of them fail to open. https://drive.google.com/file/d/1k74TpN ... sp=sharing

As of this current version, only "image0-18_no_transparent.png" opens successfully, meanwhile all other images fail to open.
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.99.0: Some animated PNGs fail to open

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 43442
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 0.99.0: Some animated PNGs fail to open

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.99.1. Please check and confirm the bug fix here.
Pierre.
woot000
Posts: 36
Joined: Thu Nov 19, 2020 12:36 am

Re: 0.99.0: Some animated PNGs fail to open

Post by woot000 »

All the animated PNGs open up and play now, this bug is fixed.
Post Reply