Error: No matching constructor overloading was found.
See original GitHub issueExpected Behavior
Create a new PNG file
Current Behavior
Error: No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.
Failure Information (for bugs)
Steps to Reproduce
let pixelData = new Uint8Array(dataset.byteArray.buffer, pixelDataElement.dataOffset, pixelDataElement.length);
new Jimp({ data: pixelData, width: columns, height: rows }, (err, image) => {
console.log(err);
console.log(image);
});
Context
- Jimp Version: 0.5.6
- Operating System: Ubuntu 18.04.1
- Node version: 10.12.0
Failure Logs
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Jimp error: No matching constructor overloading was found
Without know what specific error you're trying to handle against, the best way is to wrap your entire section of code in a...
Read more >Jimp error: No matching constructor overloading was found ...
When the user didn't provide the argument, I'm guessing msg.attachments.first() returns undefined which is why Jimp errors. if (!args[1]) { return msg.channel.
Read more >new | JS++ & JavaScript Documentation - Onux
If the class being instantiated has overloaded constructors, the compiler will ... If no matching constructor is found, the compiler will raise an...
Read more >No Matching Constructor Overloading Was Found With Simple ...
I get the error "no matching constructor for initialization of 'MyClass'" + Operator overload. MyClass I dont even understand, why it is not...
Read more >Getting error: no matching constructor for initialization ... - Reddit
Getting error: no matching constructor for initialization of ... on CLion MacOS while my colleagues working on the same repo are able to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have the same problem with any image I give to this function.
ℹ REASON →
No matching constructor overloading was found. Please see the docs for how to call the Jimp constructor.
Turns out it was an issue with the path of the image.