Open
Description
Hi,
I have an issue when using getColors, it log error: "Error: Invalid File Type"
I am writing the automation scripts in synchronous style with Chimp.
My scripts is as below:
var buffer = fs.readFileSync(path.join(__dirname, '/../../resources/uploadData/', '1.png'));
getColors(buffer, function(error, colors){
if (err) throw err; // it doesn't log error
console.log(buffer); // Log: <Buffer 89 50 4e 47 0d 0a ....>
console.log(error); // Log "Error: Invalid File Type"
});
Please help me where I am wrong? Thanks!
Metadata
Metadata
Assignees
Labels
No labels