node-resemble.js
node-resemble.js copied to clipboard
outputSettings not working
I am trying below code snippet to compare images and it is giving grey colour image. but I want to have actual image colour. I have mention RED to show in errorColor , But is showing some pink colour
resemble(fileData1)
.outputSettings({
errorColor: {
red: 255,
green: 0,
blue: 0
},
errorType: 'flat',
transparency: 1,
largeImageThreshold: 1200,
useCrossOrigin: false
})
.scaleToSameSize()
.compareTo(fileData2)
.onComplete(function(data){
});
Can you please help, what change i need to make for this.
I tried latest version(https://github.com/peter-mouland/node-resemble-v2) also . Still facing same issue, I am getting grey image. Please provide any solution on this. I need it on urgent basis.