From 9924212ec1b24135506f940dd602dcfff845d212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Mr=C3=A1z?= Date: Wed, 14 Aug 2024 17:58:01 +0200 Subject: [PATCH] fix bug Image measureWEBP (VP8X) --- images.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images.js b/images.js index 7f375da..995f679 100755 --- a/images.js +++ b/images.js @@ -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)