feat(aklive2d): added a logic to handle images that does not require alpha composite
This commit is contained in:
@@ -28,4 +28,8 @@ export default class AlphaComposite {
|
||||
return await sharp(newImage).rotate(rotate).toBuffer()
|
||||
}
|
||||
|
||||
async toBuffer(filename, extractedDir) {
|
||||
return await sharp(path.join(extractedDir, filename)).toBuffer()
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user