diff --git a/README.md b/README.md index ebe8af4b..c8dc433f 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,11 @@ Run it on your own images! First, [install Go](https://golang.org/doc/install). go get -u github.com/fogleman/primitive primitive -i input.png -o output.png -n 100 +Alternatively, you can use [Docker](https://docs.docker.com/install/). + + docker run -v ${PWD}:/tmp golang sh -c 'go get -u github.com/fogleman/primitive; primitive -i /tmp/input.png -o /tmp/output.png -n 100' + + Small input images should be used (like 256x256px). You don't need the detail anyway and the code will run faster. | Flag | Default | Description |