edi9999 / jsqrcode

[deprecated] Lazarsoft's jsqrcode as a node module, object oriented, and with tests
Apache License 2.0
278 stars 63 forks source link

image-parser is not defined #45

Closed azayneeva closed 6 years ago

azayneeva commented 6 years ago

Node throws error that it cannot find module 'image-parser'

edi9999 commented 6 years ago

Did you try doing

npm install --save image-parser ?

As far as I know, the only place where we use image-parser is in the tests file, so I don't see how you get this error by just using the library.

azayneeva commented 6 years ago

npm install --save image-parser seems not to work on node 8 (checking if it's something else). It is only used in the test but I don't see any example about hot to read an actual image unless it's already png64 encoded in the docs

edi9999 commented 6 years ago

I have updated the readme with info about how to get it working on node with jimp (easiest) or image-parser (needs graphicsmagick)

See here : https://github.com/edi9999/jsqrcode#passing-image-data-in-node

azayneeva commented 6 years ago

Thank you a lot!