The best way to do this in FULL DETAILS:
require 'open-uri'
Default Image:
default = "https://lh3.googleusercontent.com/- XdUIqdMkCWA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg"
Image to check:
image_to_check = "https://lh3.googleusercontent.com/- uh4wK1JDtCI/AAAAAAAAAAI/AAAAAAAAAAA/huieBSbV4zg/s64- c/100695019739939096169.jpg"
Comparison check
blob_for_default_image = open(default).read blob_for_image_to_check = open(image_to_check).read
Then you compare 2 drops of the image:
blob_for_default_image == blob_for_image_to_check
source share