Skip to content

Commit

Permalink
Fix natural size for a previewThumb from makeGrid; (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
stef-coenen authored Nov 20, 2024
1 parent be76f27 commit b1c51bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/libs/js-lib/src/helpers/ImageMerger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export const makeGrid = async (thumbs: EmbeddedThumb[]) => {

blob.arrayBuffer().then((buffer) => {
resolve({
pixelHeight: GRID_PIXEL_SIZE,
pixelWidth: GRID_PIXEL_SIZE,
pixelHeight: imgs.length > 2 ? GRID_PIXEL_SIZE : GRID_PIXEL_SIZE / 2,
contentType: MIME_TYPE,
content: uint8ArrayToBase64(new Uint8Array(buffer)),
});
Expand Down

0 comments on commit b1c51bb

Please sign in to comment.