All Projects → games647 → Minecraft-Skin-Renderer

games647 / Minecraft-Skin-Renderer

Licence: MIT license
Minecraft 3D Skin renderer with composer support and flexible rotation configuration

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Minecraft-Skin-Renderer

pagination
Aplus Framework Pagination Library
Stars: ✭ 167 (+1092.86%)
Mutual labels:  composer, head
PhpBotFramework
A framework for Telegram Bot API written in PHP.
Stars: ✭ 56 (+300%)
Mutual labels:  composer
Skin Lesion Detection Deep Learning
Skin lesion detection from dermoscopic images using Convolutional Neural Networks
Stars: ✭ 48 (+242.86%)
Mutual labels:  skin
generator-composer
🐘 Yeoman (http://yeoman.io) generator for a PHP Composer project
Stars: ✭ 16 (+14.29%)
Mutual labels:  composer
HandlebarsCookbook
A cookbook of handlebars and mustache, focus on handlebars.js , mustache.js and lightncandy usage
Stars: ✭ 20 (+42.86%)
Mutual labels:  composer
acme2
Another PHP client for acme protocal (version 2) implementation, used for generating letsencrypt's free ssl certificates.
Stars: ✭ 45 (+221.43%)
Mutual labels:  composer
Chleon-Player
A minimalistic media player which adjusts the color based on the wallpaper or cover.
Stars: ✭ 29 (+107.14%)
Mutual labels:  skin
geoip2-geolite2-composer
This project aims to provide an easy solution to require GeoIP2 / GeoLite2 databases inside your project using composer.
Stars: ✭ 15 (+7.14%)
Mutual labels:  composer
composer-localdev-plugin
Composer Plugin for local development
Stars: ✭ 31 (+121.43%)
Mutual labels:  composer
tug
Private Composer registry for private PHP packages on AWS Serverless
Stars: ✭ 33 (+135.71%)
Mutual labels:  composer
routing
Aplus Framework Routing Library
Stars: ✭ 186 (+1228.57%)
Mutual labels:  composer
license-checker-php
CLI tool to verify used licenses in composer dependencies
Stars: ✭ 28 (+100%)
Mutual labels:  composer
packagist
🐳 Dockette out-of-box Packagist (Nginx / Solr 6 / PHP 7.1+FPM)
Stars: ✭ 32 (+128.57%)
Mutual labels:  composer
TCSTK-Angular
TIBCO Cloud™ Composer - Angular Libraries
Stars: ✭ 12 (-14.29%)
Mutual labels:  composer
composer-file-loader
Tool to load namespaces and classes from composer.json file without composer
Stars: ✭ 64 (+357.14%)
Mutual labels:  composer
composer-normalize-action
+ 🎵 Provides a GitHub action for running ergebnis/composer-normalize.
Stars: ✭ 25 (+78.57%)
Mutual labels:  composer
ubiquity-devtools
Command line tools for Ubiquity framework
Stars: ✭ 12 (-14.29%)
Mutual labels:  composer
weapp wechat miniapp sdk
一个封装了微信小程序服务端接口的SDK
Stars: ✭ 102 (+628.57%)
Mutual labels:  composer
BetterNick
Spigot Name & Skin change plugin + API
Stars: ✭ 18 (+28.57%)
Mutual labels:  skin
gh-auto-updater
Automatic Updater with GitHub API for WordPress Plugin
Stars: ✭ 42 (+200%)
Mutual labels:  composer

Minecraft Skin Renderer

Description

Minecraft skin renderer library.

Features

  • Only responsible for rendering - You can manage how you want to
    • Download the raw skin data
    • Store the rendered skin
    • Cache the result
  • Easy to install and use
  • Easy and flexible skin rotation for 3d skin rendering

ToDo

  • 3D-Rendering --> skin rotations/perspective view
  • 1.8 Skin format support
  • Add image smoothing
  • Add arms, legs, head position manipulation
  • Add cape rendering

Installation

With composer it's just:

composer require games647/minecraft-skin-renderer

For non-composer projects, you can drop the files from the /src folder into a libraries folder and use it with a require statement at the top of the PHP-File. You can see a example in the example.php file.

Usage

//this is only used if you don't use composer
require __DIR__ . '/PATH_TO_LIB_FOLDER/MinecraftSkins.php';

use \MinecraftSkins\MinecraftSkins;

[...]

//load the skin from a file
$skinImage = imagecreatefrompng("cd6be915b261643fd13621ee4e99c9e541a551d80272687a3b56183b981fb9a.png");

//render the skin and make it 5 times bigger
$result = MinecraftSkins::skin($skinImage, 5);

//this part is for rendering the skin only
//tell the browser that we will send the raw image without HTML
header('Content-type: image/png');
imagepng($renderedSkin);

Examples

Dinnerbone head

MinecraftSkins::head($skinImage, 5);

Dinnerbone head

Dinnerbone full skin

MinecraftSkins::skin($skinImage, 5);

Dinnerbone skin

Useful links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].