News for hackers. Stuff that matters.
Re:Geometrize: Turn Images into Geometric Primitives by dawnerd on Sunday December 20, 2020 @12:52PM (#25488094)
I’ve been meaning to give something like this a shot to assist in lazy loading large images. Generate a low complexity svg that is hopefully pretty small and just fade in the full image once loaded.
Re:Geometrize: Turn Images into Geometric Primitives by munawwar on Sunday December 20, 2020 @02:30PM (#25488861)
I tried this recently:

https://gist.github.com/Munawwar/6ac51e33e901d89750ee61319d0...

The challenge is making it look pretty and at same time have a small svg output and at the same time not taking forever to generate (it's perf gets exponentialy slow). Took some time to tweak it to the settings I used.

It looks nicer than blurhash.. however blurhash is way smaller and might be more practical alternative

Re:Geometrize: Turn Images into Geometric Primitives by dawnerd on Sunday December 20, 2020 @05:45PM (#25490304)
Oh that’s very nice, I’ll give it a shot.

I did try blurhash but it was just a bit too abstract? For large images. Think desktop full width.

Re:Geometrize: Turn Images into Geometric Primitives by atulvi on Sunday December 20, 2020 @09:44PM (#25491655)
Also checkout https://blurha.sh/ if you want a minimal palceholder image for the web
Re:Geometrize: Turn Images into Geometric Primitives by klysm on Sunday December 20, 2020 @01:10PM (#25488229)
You should check out interlaced PNG and friends