Compare commits

...

2 commits

Author SHA1 Message Date
633e5fe95f Merge branch 'main' into develop
Some checks failed
Deploy To Stage / build (push) Successful in 47s
Deploy To Stage / deploy (push) Has been cancelled
2025-04-23 10:40:21 +01:00
659906e562 Add catch to image grid generator
Some checks failed
Deploy To Production / build (push) Failing after 20s
Deploy To Production / deploy (push) Has been skipped
2025-04-23 10:40:06 +01:00

View file

@ -26,6 +26,7 @@ export default class ImageHelper {
const ctx = canvas.getContext("2d");
for (let i = 0; i < cards.length; i++) {
try {
const card = cards[i];
const filePath = path.join(process.env.DATA_DIR!, "cards", card.path);
@ -67,6 +68,10 @@ export default class ImageHelper {
ctx.drawImage(image, imageX, imageY);
}
catch (e) {
AppLogger.CatchError("ImageHelper", e);
}
}
return canvas.toBuffer();
}