Portable Network Graphics - Wikipedia, the free encyclopedia: "Compression
PNG uses a 2-stage compression process:
pre-compression: filtering (prediction)
compression: DEFLATE
PNG uses a non-patented lossless data compression method known as DEFLATE, which is the same algorithm used in the zlib compression library.
[edit]"
Hmm, if it just does these two, then we should be able to do something similar with Python sending data to Javascript.