Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pxdoppelganger

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pxdoppelganger

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

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.

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

FAQs

Package last updated on 21 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc