GithubHelp home page GithubHelp logo

js / differati Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.03 MB

macOS app for easily seeing differences between two images

License: MIT License

Swift 100.00%
diff screenshot-testing snapshot-testing swift

differati's Introduction

Differati

Differati is a macOS app for visually showing differences between two images. Differati sees all change (between two images)

Motivation & Usage

It was born out of frustration working with swift-snapshot-testing test failures within Xcode. I find Xcode's test navigator clunky and it seems to not always update the diff it shows of the snapshots.

Differati comes with a command line utility to easily open image diffs, it can be installed from the main macOS app. By invoking it with the two image files to compare, eg differati old.png new.png, it will open the main app and visually show the differences.

By setting the differati command line tool as SnapshotTesting.diffTool image snapshots tests can easily be diffed from failed tests, and the saved snapshot can be updated or discarded. It is probably useful for other similar snapshot testing scenarios using a similar approach.

Copying the command and running it from the terminal (command line client can be install from the main macOS app) will open up Differati in compare mode, comparing to two images. You can also chose to either overwrite the old or new image, to update the snapshot test image.

Besides the command line client, Differati also supports the differati:// URL scheme for opening a new compare view: differati://show?old=/fully/url-encoded/path.png&new=/fully/url-encoded/other-path.png

Features

  • 2-Up: Side by side comparison:
  • Swipe: swipe left right to reveal differences
  • Onion: change opacity to reveal differences
  • Difference: Only differences between the two images are shown, optioncally with false color
  • Easily overwrite old image with new, or the other way around

Installation

Build and run from Xcode, or download the prebuilt binary from the project's Github releases

License

Licensed under the MIT license. See LICENSE.md for details.

Orignal Author

Johan Sørensen

differati's People

Contributors

js avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.