Page 1 of 1

0.99.0: Some animated PNGs fail to open

Posted: Fri Sep 17, 2021 3:27 am
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!"

Re: 0.99.0: Some animated PNGs fail to open

Posted: Fri Sep 17, 2021 7:08 am
by xnview
could you post a apng?

Re: 0.99.0: Some animated PNGs fail to open

Posted: Fri Sep 17, 2021 9:25 am
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.

Re: 0.99.0: Some animated PNGs fail to open

Posted: Mon Sep 20, 2021 9:02 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: 0.99.0: Some animated PNGs fail to open

Posted: Thu Sep 23, 2021 8:48 am
by xnview
This problem is supposed to be fixed in XnView MP 0.99.1. Please check and confirm the bug fix here.

Re: 0.99.0: Some animated PNGs fail to open

Posted: Sat Sep 25, 2021 8:20 pm
by woot000
All the animated PNGs open up and play now, this bug is fixed.