0.01
No commit activity in last 3 years
No release in over 3 years
pXdoppelganger compares two images and can tell you the exact difference (in % of pixels changed). If you compare two screenshots of you app before and after a release, it will help you to automate your design regression tests. It follows the suggestions of image comparison by in Jeff Kreeftmeijers blog: jeffkreeftmeijer.com/2011/comparing-images-and-creating-image-diffs/
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

pXdoppelganger

what can it do for me?

  • pXdoppelganger can compare two images for you.
  • pXdoppelganger converts the images into bitstreams and thus analyze every pixcel.
  • pXdoppelganger can tell you if those images are equal and what the percentual change is.
  • pXdoppelganger can also show you the "difference" image between the two images.

what are the restrictions?

  • pXdoppelganger will only work with PNG files.

how do I use it?

install the gem:

gem install pxdoppelganger

and use it:

require 'pxdoppelganger'

provide paths to images:

images = PXDoppelganger::Images.new('~/Downloads/Image1.png', '~/Downloads/Image2.png')

see if images are equal:

images.equal?
=> true/false

get the difference of the two images (in percent):

images.difference
=> 1.3849177058385036

save the difference-image:

images.save_difference_image('~Documents/analysis/diff_image.png')

how do I contribute?

open pull request

license

MIT: http://opensource.org/licenses/MIT