Giter VIP home page Giter VIP logo

skinrendermc's Introduction

SkinRenderMC

Docker Image CI

Render your Minecraft Skins and Capes in 3D view.

Tip

This project is under development. I will update it soon.

简体中文版本

Tip

SkinRenderMC 所使用的 Docker Image 也被上传至 腾讯云阿里云 容器镜像仓库中。

jinzhijie/skinrendermc-api:latest

  • registry.cn-shanghai.aliyuncs.com/serinanya/skinrendermc-api:latest
  • ccr.ccs.tencentyun.com/serinanya/skinrendermc-api:latest

browserless/chrome:latest

  • registry.cn-shanghai.aliyuncs.com/serinanya/browserless/chrome:latest
  • ccr.ccs.tencentyun.com/serinanya/browserless/chrome:latest

jinzhijie/skinrendermc-skinview3d:latest

  • registry.cn-shanghai.aliyuncs.com/serinanya/skinrendermc-skinview3d:latest
  • ccr.ccs.tencentyun.com/serinanya/skinrendermc-skinview3d:latest

What can this app do?

Send a HTTP request:

GET http://<your_server>:57680/url/image/both
    ?skinUrl=<your_skin_url>
    &capeUrl=<your_cape_url>
    &nameTag=<your_player_name>
    &definition=1.5
    &transparent=false

You will get:

the view from the front and the back of a minecraft player model

Yes, this app depends on bs-community/skinview3d, and yushijinhun is the main maintainer of the skinview3d project.

Thanks to yushijinhun for guiding me during the development of this app.

Params

  • definition
    A float, default: 1.5

    0.8 <= definition <= 3.0. The higher the value, the clearer the image generated, the higher the resolution and the larger the data size. And vice versa.

  • transparent A boolean, default: false

    When the value is true, the background of the generated image will be transparent.

Deploy

Important

Require more than 2 CPU Core & 2GB RAM to run this application.

Recommended 4 CPU Core & 4GB RAM.

Check out the PRETTY & HARMLESS docker-compose.yml!

You know what you are supposed to do now!

If you don't know what to do, follow the instructions below:

mkdir skinrendermc && cd skinrendermc
curl -O docker-compose.yml https://github.com/SerinaNya/SkinRenderMC/raw/master/docker-compose.yml
sudo docker compose up -d

The server will start on port 57680. Access http://<ip>:56780/docs to see OpenAPI documentation.

Support this Project

I know you are busy, but I really need your support! Could you offer me a star? 😭😭😭

skinrendermc's People

Contributors

serinanya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zkitefly

skinrendermc's Issues

A public demo website

A public demo website with frontend can help people to understand the project better.

支持在请求时上传皮肤文件

出于一些原因(如离线服务器,或有换肤需求的在线服务器),游戏内玩家当前所穿戴的皮肤并非与他们的名称对应。并且对于api调用方来说,获取玩家皮肤材质后上传到某资源服务器,再向api传入链接 这一系列行为总是伴随着高延迟和不可预估的错误。

我的提议是:对原有的各api额外支持POST请求调用,并允许调用方将材质文件通过请求体上传到服务,以便更好的支持多样化的使用场景

不使用Docker该怎么运行这个项目

操作系统是Windows,所以没法用Docker来部署项目,直接运行main.py则会出现一大串相对导入失败的报错(尝试了自己解决,但是没搞定)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.