Using the wonders of RMagick, this wonderful gem will produce a boolean result based on the computed similarity of the two images passed.
jamienglish,drpep
gem "symilaa", "~> 0.2.5"