nodeca / probe-image-size

Get image size without full download. Supported image types: JPG, GIF, PNG, WebP, BMP, TIFF, SVG, PSD, ICO.
MIT License
978 stars 77 forks source link

Exception in /lib/common.js missing stream module? #70

Closed bankadams closed 2 years ago

bankadams commented 2 years ago

The line: var Transform = require('stream').Transform; is returning undefined. .... ... The following line thus throws an exception // Inherit from Transform ParserStream.prototype = Object.create(Transform.prototype); .....

ERROR thrown:

common.js:9 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'prototype')

puzrin commented 2 years ago

See tests. Those are ok.

tlyon3 commented 2 years ago

What tests are you referring to? I'm trying to utlize this package and it just crashes because it's undefined.

puzrin commented 2 years ago

https://github.com/nodeca/probe-image-size/tree/master/test

kmdinake commented 2 years ago

@tlyon3 did you manage to resolve this issue?

pramodAmbekar commented 1 year ago

Hi Team, Did you manage to resolve this issue?