jankovicsandras / imagetracerjs

Simple raster image tracer and vectorizer written in JavaScript.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buffer() error

mattheward opened this issue · comments

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.