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 6ab8cad commit 11b7414Copy full SHA for 11b7414
web/scripts/pnginfo.js
@@ -49,7 +49,7 @@ export function getPngMetadata(file) {
49
50
function parseExifData(exifData) {
51
// Check for the correct TIFF header (0x4949 for little-endian or 0x4D4D for big-endian)
52
- const isLittleEndian = new Uint16Array(exifData.slice(0, 2))[0] === 0x4949;
+ const isLittleEndian = String.fromCharCode(...exifData.slice(0, 2)) === "II";
53
54
// Function to read 16-bit and 32-bit integers from binary data
55
function readInt(offset, isLittleEndian, length) {
@@ -134,6 +134,7 @@ export function getWebpMetadata(file) {
134
let index = value.indexOf(':');
135
txt_chunks[value.slice(0, index)] = value.slice(index + 1);
136
}
137
+ break;
138
139
140
offset += 8 + chunk_length;
0 commit comments