Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 524ab82

Browse files
author
HarshKhandeparkar
committed
fix: save slide feature works
1 parent f999581 commit 524ab82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Page/save-slide.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import { PNG } from 'pngjs/browser';
22

33
export function saveSlide(pixels) {
44
const png = new PNG({
5-
width: pixels.length,
6-
height: pixels[0].length
5+
width: pixels[0].length,
6+
height: pixels.length
77
})
88

99
for (let y = 0; y < pixels.length; y++) {

0 commit comments

Comments
 (0)