Fix print arguments

This commit is contained in:
C85297 2026-02-05 09:56:31 +00:00
parent aa78527ae0
commit 8baa09254c
No known key found for this signature in database

View File

@ -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;