13 comments

[ 3.6 ms ] story [ 39.8 ms ] thread
It seems obvious in insight but I never used this before. An interesting front end trick, though adding gradient backgrounds is something I avoid as it's mostly eye candy
It does, thought i’d never imagined the browser did any interpolation at all !

Neat trick, thanks for the share ;)

Now we need some tooling where you put in a maximum error bound, and it automatically finds the lowest resolution you can get away with. I wonder if one of those video-codec-based image formats (WebP, HEIC, AVIF) would already do something pretty similar if you just set a quality factor?
introduction to JPEG 101? Really? Who doesn't know these basic facts about the JPEG algorithm?
This is not a very helpful comment. And nobody knows anything about JPEG when they are born.
I thought HN is a venue for advanced to highly advanced topics?
Hacker News is a social news website focusing on computer science and entrepreneurship. It is run by Paul Graham's investment fund and startup incubator, Y Combinator. In general, content that can be submitted is defined as "anything that gratifies one's intellectual curiosity" [1]

[1] https://en.m.wikipedia.org/wiki/Hacker_News

99% of the technical articles posted on HN are very accessible if you have just the very basic understanding of CS without diving into any specific areas. I.e., lots of breadth, but little depth that is required for understanding (even if the articles themselves dive into depth).

I would count knowing the JPEG spec as a depth, rather than breadth.

Most of the pictures in the article aren't even JPEGs, they're PNG
Did you even read the post? It has nothing to do with JPEG.
Where's the hacking? It's common knowledge that if you stretch a small image, it blurs. As far as I'm aware, this is commonly used for backgrounds.