Skip to content

Commit

Permalink
Merge pull request #13 from Mrazbb/main
Browse files Browse the repository at this point in the history
fix bug Image measureWEBP (VP8X)
  • Loading branch information
petersirka committed Aug 14, 2024
2 parents 78a678d + 9924212 commit 74ef10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ exports.measureWEBP = function(buffer) {
var start = (extendedheader & 0xc0) === 0;
var end = (extendedheader & 0x01) === 0;
if (start && end)
return { width: 1 + buffer.readUIntLE(7, 3), height: 1 + buffer.readUIntLE(4, 3) };
return { width: 1 + buffer.readUIntLE(4, 3), height: 1 + buffer.readUIntLE(7, 3) }
}

if (header === 'VP8 ' && buffer[0] !== 0x2f)
Expand Down

0 comments on commit 74ef10b

Please sign in to comment.