Skip to content

Easily convert any Minecraft skin face to SVG with this code & online API.

License

Notifications You must be signed in to change notification settings

0KepOnline/MC2SVG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MC2SVG is a fan-made website that provides a simple API endpoint for converting Minecraft faces to Scalable Vector Graphics. It's running on a fairly simple C# code, which is published here.

Uses Big Gustave to read PNGs & Newtonsoft.Json to parse Minecraft API responses.

Example SVGs

ScenarioPlanet Luigifan100 SenatorApple SlimeDiamond eleanorsilly stromhurst

Usage

Endpoint documentation is available on the site: https://scenariopla.net/mc2svg/.

Command line arguments

Main arguments are input data and input data type, which is a number corresponding to this table:

Input data type Input data
0 Player UUID
1 Player nickname
2 Skin texture SHA-256 (key on textures.minecraft.net)

Also, you can specify these optional parameters (order is required):

[input data] [input data type] [hat overlay] [size] [crisp edges] [no stroke]

Example set of arguments: ScenarioPlanet 1 0 256 1 0

Argument Description
hat overlay use hat overlay layer, boolean, default: true
size size in pixels, number > 0, default: 512
crisp edges add crispEdges attribute, boolean, default: true
no stroke don't add stroke attribute, boolean, default: false