#Retrieving skin of a player
1 messages · Page 1 of 1 (latest)
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?
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"
even for slim & non slim skins?
im really struggling finding any documentation for how skins are made into images online
not sure, you might have to check that
@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.
Thanks for the suggestion
The problem is, it's for a geyser server, so there are also bedrock players which I csnt retrieve their skin like that, (but have to access it from their Game Profile.textures)
I don't know anything about Geyser so I can't help you with that unfortunately.
@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