What are the differences between APNG and MNG?

I know that APNG is a PNG extension, and MNG is larger than its format (although it was developed by the original PNG developers). MNG is practically not supported in any browser, while APNG almost only has built-in support in Firefox (apparently for various reasons for backward compatibility and decoding).

With the exception of all these backstage things, what are the differences between APNG and MNG? Do others have functions that the other does not have (for example, saving only parts that have been changed, and not always whole frames)? Does the performance have better performance or size than the other?

+4
source share
1 answer

APNG can create a new frame by replacing the entire image or superimposing or blending a smaller image over part of it. To display the pong game, you will need a new ball image in every other place. APNG has almost the same capabilities as animated GIFs, but also allows 24-bit RGB and 8-bit alpha.

MNG can do this, plus it can also get an image that was previously defined in the data stream and put it on top of the previous frame in a new location. To display your pong game, you only need to transfer one image of the ball and use it as a sprite.

The specifications have more detailed information:

apng: ( https://wiki.mozilla.org/APNG_Specification )

mng: (http://www.libpng.org/pub/mng/spec/mng-lc.html)

+7

Source: https://habr.com/ru/post/1533180/


All Articles