Hi folks,
I'm finalizing a pull request for the node-red-contrib-image-output node, but I'm stuck ...
In another node (node-red-contrib-image-tools) the following code checks whether the input is a Jimp image object:
var Jimp = require('jimp');
...
if (data instanceof Jimp) {
...
}
And that code seems to be working fine, because the data instanceof Jimp
condition is true
:
Based on that node, I use identical code in my pull-request.
But when a Jimp image object enters my node:
Then the same condition image instanceof Jimp
now results in false
:
Have been looking over-and-over to my code, but cannot see the difference
Does anybody see what I am doing wrong?
Thanks !!!
Bart