Monday, January 28, 2013
Sunday, January 20, 2013
UI Screen Shooter is a variant that uses UI Automation.
On the desktop, the
screencapture tool may be useful.
Friday, January 4, 2013
- Download zlib and build it with
- Download pngcheck.
- Make sure that the zlib directory is called
zliband is a sibling of of the
make -f Makefile.unx.
pngchecksomewhere in your path.
- Create a
pngdiffshell script somewhere in your path:
#!/bin/bash LOCAL_FILE=`mktemp /tmp/pngdiff.local.XXXXXX` || exit 1 pngcheck -v $1 > $LOCAL_FILE REMOTE_FILE=`mktemp /tmp/pngdiff.remote.XXXXXX` || exit 1 pngcheck -v $2 > $REMOTE_FILE bbdiff --wait --resume $LOCAL_FILE $REMOTE_FILE(replacing
bbdiffwith your preferred text diffing tool)
- Add the following lines to
[difftool "pngdiff"] cmd = pngdiff "$REMOTE" "$LOCAL"
git difftool -t pngdiffto view diffs.
Relatedly, to view diffs of images in
Preview.app (using the up/down arrows to toggle between the old and new versions), add this to
[difftool "imagediff"] cmd = open -n -W -a preview "$REMOTE" "$LOCAL"