If I compare .png images my code is working fine. But If I compare .gif images it gives below error
TypeError: Cannot read property 'width' of null
at /Users/karanbeer.kaur/node_modules/node-resemble-js/resemble.js:120:26
at . (/Users/xyz/node_modules/pngjs/lib/png.js:80:7)
at g (events.js:286:16)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
at ParserAsync._handleError (/Users/xyz/node_modules/pngjs/lib/parser-async.js:34:8)
at Parser._parseSignature (/Users/xyz/node_modules/pngjs/lib/parser.js:51:12)
at ChunkStream._processRead (/Users/xyz/node_modules/pngjs/lib/chunkstream.js:174:13)
Kindly help how i can resolve this issue.
If .gif format is not supported by node-resemeble.js then please mention list of supported image formats in readme.md.
If I compare .png images my code is working fine. But If I compare .gif images it gives below error
TypeError: Cannot read property 'width' of null
at /Users/karanbeer.kaur/node_modules/node-resemble-js/resemble.js:120:26
at . (/Users/xyz/node_modules/pngjs/lib/png.js:80:7)
at g (events.js:286:16)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
at emitOne (events.js:96:13)
at emit (events.js:188:7)
at ParserAsync._handleError (/Users/xyz/node_modules/pngjs/lib/parser-async.js:34:8)
at Parser._parseSignature (/Users/xyz/node_modules/pngjs/lib/parser.js:51:12)
at ChunkStream._processRead (/Users/xyz/node_modules/pngjs/lib/chunkstream.js:174:13)
Kindly help how i can resolve this issue.
If .gif format is not supported by node-resemeble.js then please mention list of supported image formats in readme.md.