News for hackers. Stuff that matters.
Re:Hacking Image Interpolation for Fun and Profit by sp332 on Monday August 19, 2019 @01:11PM (#20739578)
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?
Re:Hacking Image Interpolation for Fun and Profit by lecarore on Monday August 19, 2019 @12:42PM (#20739312)
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
Re:Hacking Image Interpolation for Fun and Profit by globuous on Monday August 19, 2019 @01:06PM (#20739539)
It does, thought i’d never imagined the browser did any interpolation at all !

Neat trick, thanks for the share ;)

Re:Hacking Image Interpolation for Fun and Profit by sp332 on Monday August 19, 2019 @01:14PM (#20739611)
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
Re:Hacking Image Interpolation for Fun and Profit by globuous on Wednesday August 28, 2019 @01:19PM (#20821857)
wow, I just learned so much from such a simple concept !! Thanks for the links ;)
Re:Hacking Image Interpolation for Fun and Profit by dusted on Tuesday August 20, 2019 @07:58AM (#20745879)
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.
[dead]
Re:Hacking Image Interpolation for Fun and Profit by aparadja on Monday August 19, 2019 @02:23PM (#20740310)
This is not a very helpful comment. And nobody knows anything about JPEG when they are born.
Re:Hacking Image Interpolation for Fun and Profit by jordache on Monday August 19, 2019 @04:01PM (#20741259)
I thought HN is a venue for advanced to highly advanced topics?
Re:Hacking Image Interpolation for Fun and Profit by ProjectBarks on Monday August 19, 2019 @06:02PM (#20742235)
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

Re:Hacking Image Interpolation for Fun and Profit by filoleg on Monday August 19, 2019 @06:09PM (#20742277)
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.

Re:Hacking Image Interpolation for Fun and Profit by FreeFull on Monday August 19, 2019 @03:01PM (#20740702)
Most of the pictures in the article aren't even JPEGs, they're PNG
Re:Hacking Image Interpolation for Fun and Profit by labwire on Monday August 19, 2019 @11:43PM (#20743653)
Did you even read the post? It has nothing to do with JPEG.