/MC-SkinPreviewAPI

A PHP library to create Minecraft skin previews from a skin file.

Primary LanguagePHPGNU General Public License v3.0GPL-3.0

Information

This Resource is forked from outadoc/MC-SkinPreviewAPI. Changes can be found here.

The Resource got changed to use Woltlab API.

===========================

Minecraft PHP skin renderer

Introduction

This script is a renderer for Minecraft skins written in PHP. It's composed of a single class that you can use to produce previews of Minecraft skins (front and back) in 2D only.

The API is designed to be easy to use: instantiate the class, give it a filename, and there's your preview.

The script should be compatible with all skins pre and post Minecraft 1.8: it supports armor pieces for every member, and slim arms (use the alex skin type).

Alex 1 Alex 2 Steve 1 Steve 2

Prerequisites

To run this, you'll need a PHP server with the GD extension active.

Usage

You can check out the sample.php file for a usage example. The script comes with a few skins you can try it on.

License

This project is made available under the terms of the GNU GPLv3 license.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.