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.
Endpoint documentation is available on the site: https://scenariopla.net/mc2svg/.
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 |