SkinRenderMC icon indicating copy to clipboard operation
SkinRenderMC copied to clipboard

A public demo website

Open SerinaNya opened this issue 2 years ago • 11 comments

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

SerinaNya avatar Jan 29 '23 04:01 SerinaNya

~~Thanks @TennousuAthena ! We have a public demo now! https://skin.sinicadream.com~~

SerinaNya avatar Feb 05 '23 04:02 SerinaNya

🚀 The official demo is now live! Thanks Cloudflare Zero Trust!! https://skinrendermc.2333336.xyz/

SerinaNya avatar Mar 27 '23 03:03 SerinaNya

I tried to query the demo URL and running locally in docker and get errors.

GET "https://skinrendermc.2333336.xyz/skinview3d/image/both?skinUrl=https://s.gerbil-dragon.ts.net/output-skin-panda.png&definition=1.5&transparent=false"
error code: 1010

Locally I get

GET "http://localhost:57680/skinview3d/image/both?skinUrl=https://s.gerbil-dragon.ts.net/output-skin-panda.png&definition=1.5&transparent=false"
{"detail":"Not Found"}

I tried messing with the path and different skinUrl (it was available when I was testing) and couldn't get it to work. Any other examples available?

rothgar avatar Jul 21 '23 05:07 rothgar

I tried to query the demo URL and running locally in docker and get errors.

GET "https://skinrendermc.2333336.xyz/skinview3d/image/both?skinUrl=https://s.gerbil-dragon.ts.net/output-skin-panda.png&definition=1.5&transparent=false"
error code: 1010

Locally I get

GET "http://localhost:57680/skinview3d/image/both?skinUrl=https://s.gerbil-dragon.ts.net/output-skin-panda.png&definition=1.5&transparent=false"
{"detail":"Not Found"}

I tried messing with the path and different skinUrl (it was available when I was testing) and couldn't get it to work. Any other examples available?

I am sorry about the outdated doc.

Try http://localhost:57680/url/image/both?skinUrl=https://s.gerbil-dragon.ts.net/output-skin-panda.png&definition=1.5&transparent=false, and tell me whether it works.

Thank you for your report.

SerinaNya avatar Jul 21 '23 05:07 SerinaNya

Thanks for the updated URL to try. I tried with an example skin here

curl -o test.png "https://skinrendermc.2333336.xyz/url/image/both?skinUrl=raw.githubusercontent.com/Monadical-SAS/minecraft_skin_generator/main/images/purple.png&definition=1.5&transparent=false"

I tried with both example servers in this issue and the image it returns is the same test

rothgar avatar Jul 22 '23 17:07 rothgar

Thanks for the updated URL to try. I tried with an example skin here

curl -o test.png "https://skinrendermc.2333336.xyz/url/image/both?skinUrl=raw.githubusercontent.com/Monadical-SAS/minecraft_skin_generator/main/images/purple.png&definition=1.5&transparent=false"

I tried with both example servers in this issue and the image it returns is the same test

Sorry about my late reply.

There are 2 problems in your request URL.

  1. the URL must be an URL. It must start with https://
  2. the server you used is the server in my own home. Most of the GitHub-related domains are banned by National Firewall. So when the server try to get your skin file, it will throw exceptions. So, the skin will be empty and won't be rendered properly.

To solve problem 2,

  • use this server provided by my partner: https://skin.sinicadream.com/url/image/both?skinUrl=https://raw.githubusercontent.com/Monadical-SAS/minecraft_skin_generator/main/images/purple.png&definition=1.5&transparent=false.
  • or, you can deploy this project on a VPS or server in your region.

If you have any more problem, please contact me again.

SerinaNya avatar Jul 31 '23 14:07 SerinaNya

And, I will update this project recently, include the document and adding another demo server.

SerinaNya avatar Jul 31 '23 14:07 SerinaNya

Thank you so much for the reply! The other server worked for me. I was trying to run the app locally and it wasn't working so I wanted to figure out how to use it before deploying it.

I'll now work on deploying it for myself.

rothgar avatar Jul 31 '23 23:07 rothgar

Thank you so much for the reply! The other server worked for me. I was trying to run the app locally and it wasn't working so I wanted to figure out how to use it before deploying it.

I'll now work on deploying it for myself.

You can deploy simplely via docker-compose.yml 🙂

SerinaNya avatar Aug 01 '23 05:08 SerinaNya

~~Thanks @TennousuAthena ! We have a public demo now! https://skin.sinicadream.com~~

Updated! I'm planning to make a corn script to make it update automatically.

TennousuAthena avatar Aug 04 '23 08:08 TennousuAthena

Thanks @TennousuAthena ! We have a public demo now! https://skin.sinicadream.com

The demo site is now moved to https://skinrendermc.kiwi.moe/

TennousuAthena avatar Oct 09 '23 12:10 TennousuAthena