Skip to content

Commit

Permalink
perf: sampling performance
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed May 12, 2023
1 parent 5da450a commit 7d6229e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ <h2>Demo</h2>
const file = input.files[i]
if (file.type === 'image/gif') {
const buffer = await file.arrayBuffer()
const { width, height } = decode(buffer)
encoder.width = width
encoder.height = height
const gif = decode(buffer)
console.log(gif)
encoder.width = gif.width
encoder.height = gif.height
frames.push(...(await decodeFramesInWorker(buffer, workerUrl)))
} else {
const url = URL.createObjectURL(file)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@
"vitest": "^0.31.0"
},
"dependencies": {
"modern-palette": "^0.2.2"
"modern-palette": "^0.2.3"
}
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit 7d6229e

@vercel
Copy link

@vercel vercel bot commented on 7d6229e May 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-gif – ./

modern-gif-git-main-qq15725.vercel.app
modern-gif-qq15725.vercel.app
modern-gif.vercel.app

Please sign in to comment.