Aaron Straup Cope recently released filtr, a script that uses ImageMagick to edit photos, especially phonecam photos.
I’ve made some fixes. Until Aaron releases the next version, here’s my patch to Filtr 0.1.
Changes:
The path handling. For Darwin it adds /sw/bin and /opt/local/bin to
$PATH. It drops $PREFIX entirely.
GraphicsMagick is used if gm is found in the path, instead of just on
FreeBSD.
Tests like if [${DO_REPORT} -gt 0] are changed to have spaces after
the bracket: if [ ${DO_REPORT} -gt 0 ]. Otherwise Bash complains
about not finding [1. Report images are generated now.
Some calls to convert have -contrast with an argument (eg, -contrast
150). This works in ImageMagick 5, but it’s no different than just
having -contrast. ImageMagick 6 chokes on the arguments, so I’ve
removed them.
I removed mv -f ${NEW} ${OUTPUT} from dazd and rockstr, because
$NEW isn’t used.
Tested on OS X 10.4.7 (ImageMagick 5.5.1) and Debian (ImageMagick 6.0.6).
10 August 2006