4 ms·
If I understand you correctly, you propose a image format which should provide a better quality for less file size. However, to implement an in-browser client-s
by ktpsns 8y ago
If I understand you correctly, you propose a image format which should provide a better quality for less file size. However, to implement an in-browser client-side reader, one probably needs a javascript library, and this will blow up the size again [Side note: Actually I am surprised the site uses JavaScript at all, being that static].
Another proposal for image compression is to fall back on SVG, c.f. https://jmperezperez.com/svg-placeholders/ https://jmperezperez.com/svg-placeholders/ -- at least this does not need JS.
- b2ccb2 8y agoThose are compression techniques, they do not require js, nor a different client and work with the jpeg standard.
- claudiulodro 8y agoTo implement the improvements you suggest on this site (which appears to be a static site), the best way would be to have your proposed image compression as part of the static site preprocessor, correct? Just trying to understand how it would be implemented, as this site is an interesting idea but the dithered images would likely not have mass-appeal.
- wolfgang42 8y agoYes, you'd just run all of the images through jpeg-recompress (from the GitHub repo linked above). They're already doing something like this to dither, so it's just a question of swapping out which command to run. Incidentally, even where PNG is appropriate (images with crisp edges, such as text and icons) you can frequently get a large size savings by applying zopflipng, which uses an alternative GZIP compression algorithm to get a higher-efficiency compression, at the cost of greater CPU use for encoding.[1] [1]: https://blog.codinghorror.com/zopfli-optimization-literally-free-bandwidth/ https://blog.codinghorror.com/zopfli-optimization-literally-...