diff --git a/src/handlers/canvasToBlob.ts b/src/handlers/canvasToBlob.ts index b237488f..e5563893 100644 --- a/src/handlers/canvasToBlob.ts +++ b/src/handlers/canvasToBlob.ts @@ -58,7 +58,7 @@ class canvasToBlobHandler implements FormatHandler { this.#canvas.width = maxLineWidth; this.#canvas.height = Math.floor(fontSize * lines.length + footerPadding); - if (outputFormat.category === "image" || outputFormat.category?.includes("image")) { + if (outputFormat.mime === "image/jpeg") { this.#ctx.fillStyle = "white"; this.#ctx.fillRect(0, 0, this.#canvas.width, this.#canvas.height); }