Our great sponsors
-
sqip
"SQIP" (pronounced \skwɪb\ like the non-magical folk of magical descent) is a SVG-based LQIP technique.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Ah, I must've misread the wiki. I thought it meant you used genetic algorithm for triangulation instead of point selection. What's your criteria for calculating the fitness for a candidate set of points?
https://github.com/RH12503/Triangula/wiki/Explanation-of-the...
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/
Somewhat of a tangent: this project's GUI was built using Wails [1]. According to their docs, "The traditional method of providing web interfaces to Go programs is via a built-in web server." I'm not a Go developer so I'm hoping someone more familiar can comment on this. Are all Go GUIs basically Electron-lite apps?
[1] https://wails.app/
This looks cool. It reminds me a lot of Primitive Pictures[0], coincidentally also written in Go, which supports other shapes besides triangles as well.
[0]: https://github.com/fogleman/primitive
I found Wails very simple to use, and would highly recommend it to anyone looking for a lightweight GUI library.
However, Wails v1 uses mshtml (basically ie11) on Windows, so some features are unavailable.
Wails uses Webpack so you need npm installed when developing your app.
You might also be interested in Tauri [1] which is a similar framework but in Rust.
[1] https://github.com/tauri-apps/tauri
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?
For low-poly art, I wonder if there could be a way to only triangulate a specific area. (eg. only the pet and not the background)
Also, if you need something less aliased, check out Triangle [1], a similar and awesome tool!
[1] https://github.com/esimov/triangle
A friend of mine and I intend to do the same, for which I came up with this: https://github.com/matze/inkdrop
I made something similar that runs in the browser using your webcam, mostly to visualise tracking keypoints.
It helps if you're in a well-lit place.
* https://github.com/Jonty/triangulator