News for hackers. Stuff that matters.
Re:SVG favicons have some cool benefits by amelius on Wednesday July 07, 2021 @05:12PM (#27765780)
I wonder if it is possible to have an ML filter that can downsample in a way that is aesthetically pleasing, even if things are not aligned at pixel-boundaries.
Re:SVG favicons have some cool benefits by chrismorgan on Wednesday July 07, 2021 @10:25PM (#27767903)
What you’re describing sounds like automated hinting. It’s a nice idea, but in practice it’s going to mess up too much stuff to be worth it, even if performance weren’t a problem.
Re:SVG favicons have some cool benefits by amelius on Thursday July 08, 2021 @03:55AM (#27769339)
I'm not so sure. Have you seen what the (loosely speaking) "inverse" operation (ML based superresolution) is capable of? E.g.:

https://www.pixelmator.com/blog/2019/12/17/all-about-the-new...

Re:SVG favicons have some cool benefits by chrismorgan on Thursday July 08, 2021 @07:12AM (#27770479)
Machine learning is singularly well-suited for superresolution, because you can trivially downsample and train it on that inverse operation, so training at scale is really easy.

But pleasing hinting—even operating on raster rather than vector sources—can’t be trained in the same way, because it’s inherently more subjective; it may be possible to come up with an alternative approach to training, but I suspect it’ll still be much more prone to inducing significant errors.

And of course, performance in all these things is such that they’re not going to be shipped in browsers; from your link, that model is thousands of times more expensive than the (admittedly-inferior) alternatives. (What’s their disk space like? I’m not familiar with how big such ML models end up.)