Hacker GitHub

← All repos

fogleman/primitive

View on GitHub ↗ ★ 13,575 Go

Reproducing images with geometric primitives.

42 mentions on Hacker News by 32 people: 4 stories, 38 comments · first 2016-09-15 · latest 2026-04-22

Mentions per year 42 mentions · busiest year 2016 (13)
20082026
  1. …basic shapes (triangles, ellipses, etc) by Fogleman [1] - but ofcourse this is different. [1]: https://github.com/fogleman/primitive
  2. …of the Vermeer portrait in the OP. [1]: https://github.com/kevin-hanselman/primitive-web-ui [2]: https://github.com/fogleman/primitive
  3. From https://news.ycombinator.com/item?id=38377307#38400435 (2023) : > TIL about https://github.com/fogleman/primitive from "Comparison of raster-to-vector conversion software" https://en.wikipedia.org/wiki/Comparison_of_raster-to-vector…
  4. TIL about https://github.com/fogleman/primitive from "Comparison of raster-to-vector conversion software" https://en.wikipedia.org/wiki/Comparison_of_raster-to-vector... which does already list vtracer (2020) visioncortex/vtracer:…
  5. Looks like it's made with https://github.com/fogleman/primitive
  6. If you are not in for the maths, you might also like this: https://github.com/fogleman/primitive It redraws images with shape primitives and allows verctorization with a cool art style.
  7. …that loses detail to the point where a human would notice. Consider an SVG from [Primitive]( https://github.com/fogleman/primitive ) and a mostly-transparent overlay containing the diff against the original image. Tuning Primitive is not…
  8. …coincidentally also written in Go, which supports other shapes besides triangles as well. [0]: https://github.com/fogleman/primitive
  9. …of the video, wrote a ruby script which runs over every image in a folder and calls primitive ( https://github.com/fogleman/primitive ) on each image. The final step is to recombine it into a single video, which I haven't done yet because…
  10. Shoutout to Michael Fogleman's primitive[1] for likely inspiring this work. [1]: https://github.com/fogleman/primitive
  11. Sounds like https://github.com/fogleman/primitive but for video
    comment by zcw100 · 2020-07-20 · in Video Vectorization
  12. https://github.com/fogleman/primitive is a favorite of mine.
    comment by snakeboy · 2020-06-06 · in Genetic Drawing
  13. There's a pretty awesome project that does this with SVGs. https://pkg.go.dev/mod/github.com/fogleman/primitive https://primitive.lol/ I've used it in a project to generate vector thumbnails that are under 1KB that I can just base64 encode…
  14. …some help maintaining it, I imagine plenty of fellow HN-ers (including me) would love to help. [1] https://github.com/fogleman/primitive/pulls?q=is%3Aopen+is%3...
  15. Indeed. I mentioned that in the README: https://github.com/fogleman/primitive#inspiration
  16. The core of Primitive is open source, written in Go. https://github.com/fogleman/primitive Only the UI is closed source. It's written in Objective-C and basically shells out to the Go code.
  17. …Schiffman's book, which is covered in a series of tutorials in the linked YouTube channel. [0] https://github.com/fogleman/primitive [1] https://www.youtube.com/channel/UCvjgXvBlbQiydffZU7m1_aw
    comment by anonytrary · 2018-09-10 · in Generative Art Finds Its Prodigy
  18. This is officially the coolest project I've seen on HN since https://github.com/fogleman/primitive
    comment by anonytrary · 2018-09-07 · in Medieval Fantasy City Generator
  19. …into a composition of 2D overlapping, translucent polygons. Output is available chiefly as an .svg https://github.com/fogleman/primitive Using this and images from a search engine, I made a calendar with animals. I could post it if…
    comment by b0rsuk · 2018-08-28 · in Why Love Generative Art?
  20. Another option, if your images are simple enough, is to use https://github.com/fogleman/primitive to convert it to SVG. Might not be worth the effort though as the space savings could be too insignificant to matter for the artifacts…
  21. …like icons or logos. I usually just hand-optimize simple ones, then run them through svgo [2]. [0] https://github.com/fogleman/primitive [1] https://github.com/technopagan/sqip [2] https://github.com/jakearchibald/svgomg/blob/master/README.…
    comment by watersb · 2017-11-27 · in Super Tiny Website Logos in SVG
  22. …my software in different ways! If this looks interesting to you, try it out: https://primitive.lol/ https://github.com/fogleman/primitive Also, I made a Twitter bot that posts samples every 30 minutes based on "interesting" Flickr photos…
    comment by fogleman · 2017-11-14 · in Using SVG as image placeholders
  23. One other small filesize hack for pretty background images is to use primitive ( https://github.com/fogleman/primitive ) to make stylized SVGs. I use it for https://goodfeels.net for the hero header image.
  24. There's a lot of cool stuff on here. This project in particular is way neat. https://github.com/fogleman/primitive I think that project was posted to HN some time ago? Ah well, certainly worth another mention. It turned out really nicely!…
    comment by mythrwy · 2017-05-30 · in My Portfolio
  25. there is no reason why a subsets of SVGs couldn't be stored as a bunch of triangles See https://github.com/fogleman/primitive for working SVG-as-triangles generation from bitmaps (or higher resolution/complexity SVG input).
    comment by contingencies · 2017-05-08 · in Automating app assets with Inkscape
  26. Is it based on this https://github.com/fogleman/primitive ?
  27. I know it's all in CSS but the graphics look like those generated by https://github.com/fogleman/primitive
  28. See also https://github.com/fogleman/primitive
  29. https://github.com/fogleman/primitive
  30. …actually free software[1]. Maybe you should include a link somewhere on the page you linked? [1]: https://github.com/fogleman/primitive
    comment by cyphar · 2016-11-16 · in Show HN: Primitive for macOS
  31. …here. It would be really cool if I could test this out. Edit: Found that the core is on github ( https://github.com/fogleman/primitive ). All you need is go to run it.
    comment by mwambua · 2016-11-16 · in Show HN: Primitive for macOS
  32. https://github.com/fogleman/primitive
    comment by fogleman · 2016-11-15 · in Show HN: Primitive for macOS
  33. Seems the core is OS on Github. So you can use it on the command line or write a GUI for it yourself: https://github.com/fogleman/primitive
    comment by deepflame · 2016-11-15 · in Show HN: Primitive for macOS
  34. Explained here: https://github.com/fogleman/primitive#how-it-works-part-ii
    comment by fogleman · 2016-11-15 · in Show HN: Primitive for macOS
  35. There is attribution on the GitHub repo. ;) https://github.com/fogleman/primitive#inspiration
    comment by fogleman · 2016-11-15 · in Show HN: Primitive for macOS
  36. …just groups with <g></g> [0] https://github.com/globalcitizen/svglover [1] http://love2d.org/ [2] https://github.com/fogleman/primitive [3] https://news.ycombinator.com/item?id=12539109 [4] Make it work first, then make it work fast .
    comment by contingencies · 2016-09-27 · in SVG has more potential
  37. …maxTemp, etc.) for those? Why did you currently end up choosing hill climbing over annealing, here: https://github.com/fogleman/primitive/blob/master/primitive/...
    comment by bomdo · 2016-09-21 · in Show HN: Primitive Pictures
  38. The code already does that. ;) Perhaps you'd like a larger constraint: https://github.com/fogleman/primitive/blob/master/primitive/...
    comment by fogleman · 2016-09-20 · in Show HN: Primitive Pictures