forked from noxious/server
Finish sprite gen. update
This commit is contained in:
@ -81,11 +81,11 @@ export class AvatarController extends BaseController {
|
||||
if (fs.existsSync(hairSpritePath)) {
|
||||
// Resize hair sprite to match body dimensions
|
||||
const resizedHair = await sharp(hairSpritePath)
|
||||
.resize(bodyMetadata.width, bodyMetadata.height, {
|
||||
fit: 'contain',
|
||||
background: { r: 0, g: 0, b: 0, alpha: 0 }
|
||||
})
|
||||
.toBuffer()
|
||||
.resize(bodyMetadata.width, bodyMetadata.height, {
|
||||
fit: 'contain',
|
||||
background: { r: 0, g: 0, b: 0, alpha: 0 }
|
||||
})
|
||||
.toBuffer()
|
||||
|
||||
avatar = avatar.composite([
|
||||
{
|
||||
|
Reference in New Issue
Block a user