Compare two PNG images using rmagick


#1

Hi,
I am looking for a code snippet to compare two PNG images using rmagick.

Can anybody help me in this regard.

Thanks,
Anil kumar


#2

On Thu, Jul 9, 2009 at 5:56 AM, Anil G.removed_email_address@domain.invalid wrote:

Hi,
I am looking for a code snippet to compare two PNG images using rmagick.

Yeah, you could google “PNG rmagick”, then read some documentation,
then implement it yourself.
If you run into specific problems with a certain feature, I’m sure
someone here will be happy to help you, so long as you let them know
specifically what you want to do.

-greg


#3

Anil G. wrote:

Hi,
I am looking for a code snippet to compare two PNG images using rmagick.

Can anybody help me in this regard.

Thanks,
Anil kumar

http://studio.imagemagick.org/RMagick/doc/image1.html#compare_channel


#4

This is working like charm, even with semi-duplicate images:
https://github.com/westonplatter/phashion
Tutorial and explanation here:
http://www.amberbit.com/blog/2013/12/20/similar-images-detection-in-ruby-with-phash/