jankovicsandras / imagetracerjs

Simple raster image tracer and vectorizer written in JavaScript.
The Unlicense
1.31k stars 171 forks source link

Buffer() error #58

Closed mattheward closed 3 years ago

mattheward commented 3 years ago

Hello,

I received this error while running imagetracerjs in node.js

(node:62309) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use node --trace-deprecation ... to show where the warning was created)

This means there is something wrong with the script, right? I believe it is with PNGReader.js. What do I need to change the buffer methods to?

I apologize if this is a basic question, I am pretty new at JavaScript.