Clientside Image Compression
It’s that easy.
JPRIL automatically replaces any PNGs in the document with it’s compressed version, garbage collecting the older, larger version. The images look about the same, but how compressed they are is up to you. You can pass in a second argument which is treated as a percentage for compression. Here are two examples:
The code is of course open for anyone to use. Just click here to download it. Compressed and gzipped it’s only 62K.
Yes, this is an April fool’s joke.