News for hackers. Stuff that matters.
Re:Show HN: I built a tool to generate triangulated art from... by rh12503 on Thursday April 22, 2021 @05:14AM (#26900536)
That's an interesting idea! I suppose it could be used for compression, although my intentions were for this to be a generative art project.

I triangulated a 1988×1491 jpg using 10,000 points and managed to reduce the size to 20% of the original size, but the triangles could still obviously be seen.

Re:Show HN: I built a tool to generate triangulated art from... by hapidjus on Thursday April 22, 2021 @05:44AM (#26900725)
You could probably make it into an SVG file to reduce the size even more.
Re:Show HN: I built a tool to generate triangulated art from... by jacob019 on Thursday April 22, 2021 @07:24AM (#26901473)
Love this idea. A novel vectorization.
Re:Show HN: I built a tool to generate triangulated art from... by fogihujy on Thursday April 22, 2021 @09:03AM (#26902267)
Adding my voice to this. It would be an amazing tool for web work -- the vectorized images look far better than the very small jpeg images used in lazy loading today.
Re:Show HN: I built a tool to generate triangulated art from... by jarek-foksa on Thursday April 22, 2021 @02:23PM (#26906132)
Similar functionality is already implemented in Boxy SVG editor [1]. There is also another more powerful "Primitivize" generator which has more options, e.g. you can choose whether the vectorized image should consist from triangles or rectangles.

[1] https://i.imgur.com/I8Fq1bM.gif

Re:Show HN: I built a tool to generate triangulated art from... by mdiesel on Thursday April 22, 2021 @11:40AM (#26903998)
And could inline, so that the preview image is loaded with the page itself.
Re:Show HN: I built a tool to generate triangulated art from... by gillesjacobs on Thursday April 22, 2021 @06:23AM (#26901057)
It sure looks better aestethically esimov/triangle or fogleman/primitive! Goal achieved I would say.

It still would be cool to see this compared to those in Low Quality Image Placeholder implementations and find out if the extra work on nicer aethetics is preserved when the blur applied.

Re:Show HN: I built a tool to generate triangulated art from... by rh12503 on Thursday April 22, 2021 @06:34AM (#26901138)
Blurring is a good idea! It could work with placeholder images, but it'll probably be better with smaller ones (eg. profile pictures).