From 8baa09254c3ecb4fe6bf473b113308a1580cd607 Mon Sep 17 00:00:00 2001 From: C85297 <95289555+C85297@users.noreply.github.com> Date: Thu, 5 Feb 2026 09:56:31 +0000 Subject: [PATCH] Fix print arguments --- src/core/operations/AddTextToImage.mjs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/core/operations/AddTextToImage.mjs b/src/core/operations/AddTextToImage.mjs index b1460a3d..aa3c8928 100644 --- a/src/core/operations/AddTextToImage.mjs +++ b/src/core/operations/AddTextToImage.mjs @@ -216,7 +216,12 @@ class AddTextToImage extends Operation { width: measureText(jimpFont, text), height: measureTextHeight(jimpFont, text), }); - textImage.print(jimpFont, 0, 0, text); + textImage.print({ + font: jimpFont, + x: 0, + y: 0, + text, + }); // Scale the rendered text image to the correct size const scaleFactor = size / 72;