shockedplot7560 / minecraft-skin-converter
Installs: 1 318
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
This package is auto-updated.
Last update: 2024-12-24 15:45:35 UTC
README
It is designed to support any type of skin format, but also to be able to export the skin from different angles.
Usage
Declare a new Skin instance with the path to the respective image
$skin = new ShockedPlot7560\minecraftskin\Skin("a/path/to/file");
Use the Exporter to export your skin as a file, or use the internal methods of the Skin class directly
Exporter::exportPng($skin, "path/to/head/skin", Exporter::HEAD_TYPE);
Example
Simply use the two php files located in the example folder to get a demonstration in two different formats