Skip to content

🚦 Compares two images and prints max pixel difference.

Notifications You must be signed in to change notification settings

swiftyfinch/imgDiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgDiff

Fastlane Swift Version Platform Twitter

When you use iOSSnapshotTestCase (previously named FBSnapshotTestCase) it can be difficult to understand which perPixelTolerance you should define. This tiny util can help you to compare two images in the same manner as iOSSnapshitTestCase does that. And then you can tune the perPixelTolerance in your tests for sure.

Install:

Firstly, you should install Fastlane. And then go on to Usage topic.
You can find information about Fastlane here.

Usage:
$ bundle exec fastlane imgDiff one:your_img_path1 two:your_img_path2
// 🚦 Max pixel difference: 0.2705

Author

Vyacheslav Khorkov, artfintch@ya.ru

About

🚦 Compares two images and prints max pixel difference.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages