Skip to content

Commit

Permalink
Merge pull request exiled-apes#93 from ryanckulp/main
Browse files Browse the repository at this point in the history
bug fix - preview image generator
  • Loading branch information
HashLips authored Oct 15, 2021
2 parents 951c19d + d2e71ab commit 85c7192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/createPreviewCollage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
Expand Down

0 comments on commit 85c7192

Please sign in to comment.