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-673365ecc7940870134930/] Add below code in onPrepare function of configuration file [crayon-673365ecc7944786467244/] Code to do image comparison [crayon-673365ecc7947745220043/] ImageName is image file name exist in baseline folder. If image is not

This Article is TAGGED in , . Read more