#Retrieving skin of a player

1 messages · Page 1 of 1 (latest)

terse hemlock
#

or i guess i should crop the image to a specific area (to extract only the head from front)?
I know there is two types of skin: slim & normal, where should i crop the 8x8 area representing the head? and i guess i should also extract the hat layer and put it on top?

normal gull
#

you have to download the image (HttpConnection or similar) and then put it into a BufferedImage or whatever

#

then manually extract the "head" part

#

they are always at the same "location"

terse hemlock
#

even for slim & non slim skins?

#

im really struggling finding any documentation for how skins are made into images online

normal gull
#

not sure, you might have to check that

midnight crater
#

@terse hemlock I use this site https://minepic.org/ to retrieve player's head in 2d images.
You can search by username or uuid, and also you can specify the size of the image by pixels.

#

Their code is open source too so you can take a look at that.

terse hemlock
midnight crater
#

I don't know anything about Geyser so I can't help you with that unfortunately.

terse hemlock
#

@midnight crater yeah well its exactly the same way to retrieve the skin than for java players, so I guess my question is:
Do you know whether slim & non slim skin's head is placed at the same spot, If yes what area do I have to crop?
Or do you know a website that let's me extract head of a skin from its signature or mojang link