go-pixelart

module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT

README

go-pixelart

Transform picture into pixel art

🎖 Awesome tiny project getting fourth place 4⃣ at GoHack Hackathon 2022 (1011 participants)

HTML

curl -vvv -X POST https://fairhive-pixelart.herokuapp.com/pixelize -F "file=@pictures/wfvr.png" -F "edge=short" -F "slices=100" -F "filter=ega" -H "Content-Type: multipart/form-data" --output pixelart.html

JSON

curl -s -X POST "https://fairhive-pixelart.herokuapp.com/pixelize?mime=json" -F "file=@pictures/wfvr.png" -F "edge=short" -F "slices=100" -F "filter=ega" -H "Content-Type: multipart/form-data" | jq

Docker

Build

docker build -t fairhivelabs/pixelart . && docker push fairhivelabs/pixelart

Run

docker run -it --rm -p 8080:8080 fairhivelabs/pixelart

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL