|
|
|
|
|
by 082349872349872
1249 days ago
|
|
> zlib is 23k lines. The zlib format includes uncompressed* chunks, and CRC is only non-trivial if you're also trying to do it quickly, so a faux-zlib can be much, much smaller. (I don't recall if I've done this with PNG specifically, but consider suitably crafted palettes for byte-per-pixel writing: quick-n-dirty image writers need not be much more complex than they would've been for netpbm) * exercise: why is this true of any reasonable compression scheme? |
|
https://github.com/a-e-k/canvas_ity/blob/f32fbb37e2fe7c0fcae...