Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.png diff=image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
A repository for golden image files that are used by tests in https://github.com/flutter/flutter. | ||
|
||
See: https://github.com/flutter/flutter/wiki/Writing-a-golden-file-test-for-package%3Aflutter | ||
|
||
## Getting diffs for golden images | ||
|
||
If you have ImageMagick and you want to use it to show diffs of files | ||
in this repo, add the following to your `~/.gitconfig`: | ||
|
||
``` | ||
[diff "image"] | ||
command = /path/to/this/repo/diff-images.sh | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
compare $2 $1 png:- | montage -geometry +4+4 $2 - $1 png:- | display -title "$1" - |