diff --git a/utils/createPreviewCollage.js b/utils/createPreviewCollage.js index 724cda9a2..b1a285b5e 100644 --- a/utils/createPreviewCollage.js +++ b/utils/createPreviewCollage.js @@ -22,7 +22,7 @@ const saveProjectPreviewImage = async (_data) => { // Prepare canvas const previewCanvasWidth = thumbWidth * thumbPerRow; const previewCanvasHeight = - thumbHeight * Math.trunc(_data.length / thumbPerRow); + thumbHeight * Math.ceil(_data.length / thumbPerRow); // Shout from the mountain tops console.log( `Preparing a ${previewCanvasWidth}x${previewCanvasHeight} project preview with ${_data.length} thumbnails.`