(crf: number)
| 950 | if (converted) imageBuffer = converted; |
| 951 | } else if (kind === "sticker") { |
| 952 | imageBuffer = await (await getSharp())(buffer, { animated: false }).ensureAlpha().png({ force: true }).toBuffer(); |
| 953 | } |
| 954 | const { createCanvas, loadImage } = await getCanvas(); |
| 955 | const img = await loadImage(imageBuffer); |
no outgoing calls
no test coverage detected