Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 982 Bytes

README.md

File metadata and controls

44 lines (28 loc) · 982 Bytes

pic2stl

A Simple Go code, to convert a image into a stl mesh, to engrave it or use it otherwise

Installation

go get libraries

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

Build it

go build

Usage

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

Example

pic2stl -ZDivider 0.1 -Input image.png -Output output.stl

Creates from

input image

An STL like this (Screenshot)

output image