Fix ContainImage oqaqueness

This commit is contained in:
C85297 2026-02-06 11:13:10 +00:00
parent 19badf6369
commit 7beedfae89
No known key found for this signature in database

View File

@ -126,7 +126,11 @@ class ContainImage extends Operation {
}); });
if (opaqueBg) { if (opaqueBg) {
const newImage = await Jimp.read(width, height, 0x000000ff); const newImage = new Jimp({
width,
height,
color: 0x000000ff,
});
image = newImage.blit({ image = newImage.blit({
image, image,
x: 0, x: 0,