made a few changes
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 832 B |
BIN
JavaScript/MinecraftFaceGetter/images/MysticalDusk.png
Normal file
BIN
JavaScript/MinecraftFaceGetter/images/MysticalDusk.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
@@ -36,14 +36,12 @@ function getFaces(usernames) {
|
||||
let link = JSON.parse(Buffer.from(res.properties[0].value, 'base64').toString('ascii')).textures.SKIN.url;
|
||||
jimp.read(link, function (err, lenna) {
|
||||
if (err) throw err;
|
||||
lenna.crop(8,8,8,8)
|
||||
.resize(256, 256, jimp.RESIZE_NEAREST_NEIGHBOR)
|
||||
lenna.crop(8,8,8,8)
|
||||
.resize(256, jimp.AUTO, jimp.RESIZE_NEAREST_NEIGHBOR)
|
||||
.write(`images/${username}.png`);
|
||||
|
||||
console.log(`${username}'s skin cropped successfully`);
|
||||
});
|
||||
});
|
||||
|
||||
}).on("error", (err) => {
|
||||
console.log(`ERROR: Couldn't get ${username}'s skin!`);
|
||||
});
|
||||
|
||||
@@ -11,7 +11,7 @@ NinjaEvan
|
||||
Sailordi
|
||||
CreeperGator
|
||||
XerShade
|
||||
MysticalDuck
|
||||
MysticalDusk
|
||||
LNERWS
|
||||
PurpleSquishFace
|
||||
RockyJedi
|
||||
|
||||
Reference in New Issue
Block a user