lksv / node-resemble.js

LOOKING FOR MAINTAINER - Image analysis and comparison
MIT License
99 stars 37 forks source link

outputSettings not working #31

Open KaranbeerKaur opened 7 years ago

KaranbeerKaur commented 7 years ago

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. compare

KaranbeerKaur commented 7 years ago

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.