Inspired by the old minecraft skin generator website, you can generate little mini-mes from a Minecraft skin. This program supports both 64x64 and 128x128 skins, but nothing else.
You can run the example program by running go run cmd/main.go and providing an input and output file. For example:
# Generating a mini-me for a non-slim skin
go run cmd/main.go steve.png steve-mini.png
# Generating a mini-me for a slim skin
go run cmd/main.go alex.png alex-mini.png slimFirst run go get github.com/twistedasylummc/minime to install the dependency. You can then use one of the following
methods to generate a mini-me:
minime.Skin64(src image.Image) (dst image.Image)minime.Skin128(src image.Image, slim bool) (dst image.Image)
The
Skin128method takes an additional boolean parameter for if the skin is slim, meaning the arms are 3 pixels wide instead of 4. This boolean adjusts the positions of the pixels used on the arms to produce the best result.