We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6262bd1 commit f8e7c4bCopy full SHA for f8e7c4b
web_src/js/utils/image.js
@@ -1,7 +1,7 @@
1
export async function pngChunks(blob) {
2
const uint8arr = new Uint8Array(await blob.arrayBuffer());
3
const chunks = [];
4
- if (uint8arr.length < 8) return chunks;
+ if (uint8arr.length < 12) return chunks;
5
const view = new DataView(uint8arr.buffer);
6
if (view.getBigUint64(0) !== 9894494448401390090n) return chunks;
7
0 commit comments