A Simple Go code, to convert a image into a stl mesh, to engrave it or use it otherwise
go get github.com/namsral/flag
go get github.com/anthonynsimon/bild/effect
go get github.com/anthonynsimon/bild/imgio
go get github.com/anthonynsimon/bild/transform
go build
run it with --help to get the Options available
It takes an Image as input and creates a STL File as Output
You can set a Resize Factor for Z with -ZDivider
Also ResizeX and ResizeY is available. If only one is set we keep Ratio.
You can Invert black and white with -Invert
pic2stl -ZDivider 0.1 -Input image.png -Output output.stl
Creates from
An STL like this (Screenshot)