Hacker News new | past | comments | ask | show | jobs | submit login
Hacking Image Interpolation for Fun and Profit (peterhrynkow.com)
41 points by labwire on Aug 19, 2019 | hide | past | favorite | 12 comments



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?


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 ;)


They didn't used to, because it slowed down rendering. Then they started blurring stuff which worked well most of the time but not e.g. for retro artists who wanted the pixely look. So eventually they added some CSS properties to control it. https://builtvisible.com/image-scaling-in-css/ https://caniuse.com/#search=image%20rendering


wow, I just learned so much from such a simple concept !! Thanks for the links ;)


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.


[flagged]


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.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: