Skip to content

Commit 85c7192

Browse files
authored
Merge pull request #93 from ryanckulp/main
bug fix - preview image generator
2 parents 951c19d + d2e71ab commit 85c7192

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/createPreviewCollage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const saveProjectPreviewImage = async (_data) => {
2222
// Prepare canvas
2323
const previewCanvasWidth = thumbWidth * thumbPerRow;
2424
const previewCanvasHeight =
25-
thumbHeight * Math.trunc(_data.length / thumbPerRow);
25+
thumbHeight * Math.ceil(_data.length / thumbPerRow);
2626
// Shout from the mountain tops
2727
console.log(
2828
`Preparing a ${previewCanvasWidth}x${previewCanvasHeight} project preview with ${_data.length} thumbnails.`

0 commit comments

Comments
 (0)