#!/bin/bash -eu
# apng-compare:	create an animated PNG to compare before / after screenshots

ct=87

. opts

import ss1.png
read -p "ready? "
import ss2.png

if [ "$ct" -gt 0 ]; then
	for F in ss1.png ss2.png; do
		v mogrify -crop +0+87 -gravity North "$F"
	done
fi

apngasm compare.png ss1.png 10

chrome compare.png
