diff --git a/src/core/operations/ContainImage.mjs b/src/core/operations/ContainImage.mjs index 37ac1e18..02148a4a 100644 --- a/src/core/operations/ContainImage.mjs +++ b/src/core/operations/ContainImage.mjs @@ -126,7 +126,11 @@ class ContainImage extends Operation { }); if (opaqueBg) { - const newImage = await Jimp.read(width, height, 0x000000ff); + const newImage = new Jimp({ + width, + height, + color: 0x000000ff, + }); image = newImage.blit({ image, x: 0,