Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PNG files structure

I've already learned how to generate BMP images based on the BMP files structure (here and here).

Now I'm looking for the PNG file structure but I haven't found any good explanations.

Do you know where I can find this explanation with schemes as well?

like image 303
Danilo Valente Avatar asked Jun 05 '26 13:06

Danilo Valente


2 Answers

The complete specification is available here: http://www.libpng.org/pub/png/spec/1.2/png-1.2.pdf

Note that the PNG format is much more complex than BMP, since it allows compression, etc.

like image 138
timos Avatar answered Jun 10 '26 11:06

timos


What about Wikipedia's explanation? It seems to be written very well and is very easy to understand. There's also the specification, which goes into everything.

like image 39
Matt S. Avatar answered Jun 10 '26 12:06

Matt S.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!