pngdelta

Efficient compressed encoding of the delta between two RGB .png images.

Usage no npm install needed!

<script type="module">
  import pngdelta from 'https://cdn.skypack.dev/pngdelta';
</script>

README

Compresed PNG Delta Encoding

pngdelta produces bit-efficient compressed deltas between RGB .png files. pngdelta exports two functions:

  • delta(a, b, callback) produces the compressed delta between pngjs loaded PNGs;
  • patch(a, delta, callback) patches the original image with the compressed delta to recover the second image.