Home > Image Comparison

Compare images using Java

This code will compare pixel from base image with other image. If both pixel at location (x,y) are same then add same pixel in result image without change. Otherwise it modifies that pixel and add to our result image. In case of baseline image height or width is larger than other image

This Article is TAGGED in , , . Read more

Code to perform Image comparison in protractor

To perform image comparison in GUI Testing we need to install protractor-image-comparison module it can be installed using below command. Open command prompt and run below command. [crayon-66065982a7d64480940559/] Add below code in onPrepare function of configuration file [crayon-66065982a7d6f979062138/] Code to do image comparison [crayon-66065982a7d72313246344/] ImageName is image file name exist in baseline folder. If image is not

This Article is TAGGED in , . Read more