shapeme
sqip
shapeme | sqip | |
---|---|---|
1 | 4 | |
383 | 3,361 | |
- | - | |
0.0 | 9.0 | |
over 2 years ago | 7 days ago | |
C | TypeScript | |
BSD 2-clause "Simplified" License | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
shapeme
-
Show HN: I built a tool to generate triangulated art from images
This reminds me of a project I found by Antirez (the creator of Redis) recently called shapeme: https://github.com/antirez/shapeme - which uses simulated annealing: https://en.wikipedia.org/wiki/Simulated_annealing to approximate an image using triangles. It took me down a really interesting rabbit hole: "The name of the algorithm comes from annealing in metallurgy, a technique involving heating and controlled cooling of a material to increase the size of its crystals and reduce their defects."
I thought it was really interesting that a useful algorithm like this was created and possibly influenced by a natural process. I wonder if this repo uses the same type of algorithm?
sqip
- Stepped image compression API?
-
Show HN: I built a tool to generate triangulated art from images
I think OP's project would be great to add as a new entry to the SQIP demo site [2].
In the thumbnail demo, the LQIP-custom approach (simple resize to low-res jpg thumbail+optimize jpg) approach preserves the more salient features better and has compression on-par-or-better than SQIP with lower processing times. So in my opinion the simple extreme resize+jpgoptim is preferable for thumbnails.
Thumbnails are only small part of LQIP story though and I can imagine RH12503/Triangula working much better for larger images.
1. https://github.com/axe312ger/sqip
2. https://axe312ger.github.io/sqip/
-
🔥 Native lazy loading is here!
Alright, so SQIP generates an SVG from an image, see here and here.
What are some alternatives?
triangula - Generate high-quality triangulated and polygonal art from images.
blurhash-to-css - Convert a BlurHash to a CSS Object using TypeScript, Rust, and WebAssembly.
triangle - Convert images to computer generated art using delaunay triangulation.
Primitive Pictures - Reproducing images with geometric primitives.
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
plaiceholder - Beautiful image placeholders, without the hassle.
loading-attribute-polyfill - Fast and lightweight dependency-free vanilla JavaScript polyfill for native lazy loading / the awesome loading='lazy'-attribute.
QCObjects - Full Stack Javascript Framework for Modern Software Development
import-cost - displays the import size of the package you are importing inside the code editor
triangulator - A visualisation of the delaunay triangulation of FAST keypoints of YOUR FACE