Summary

Enable lossless editing of PNGs via a textual representation.

SNG (Scriptable Network Graphics) is a minilanguage designed specifically to represent the entire contents of a PNG (Portable Network Graphics) file in an editable form. Thus, SNGs representing elaborate graphics images and ancillary chunk data can be readily generated or modified using only text tools.

SNG is implemented by a compiler/decompiler called sng that losslessly translates between SNG and PNG.

Downloads are available from SNG's SourceForge page.

(The author, Eric S. Raymond, is a credited contributor to the libpng reference library, and also maintains gif2png. For more information on the PNG format and associated tools, see the official PNG website)

Resources


README.adocroadmap file
TODOto-do file
COPYINGproject license
NEWS.adocproject news
AUTHORScredits
sng-1.1.2.tar.gzgzipped source tarball
README.htmlroadmap file
sng.htmlDocumentation
NEWS.htmlproject news

This code is usually packaged as 'sng'.

Packaged versions

If you appreciate this code (and especially if you make money by using it) please support me on Patreon.

Recent Changes

        * Code haardening by ChatGPT 5.2
	* Fixed a parsing error in the compiler's P3 path
	* Bumerouus potential buffer overruns prevebted.
	* Repaired erroneous P1/P3 dimension checks,