summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x2ff5
1 files changed, 5 insertions, 0 deletions
diff --git a/2ff b/2ff
index bf58e5b..f958692 100755
--- a/2ff
+++ b/2ff
@@ -24,6 +24,11 @@ image/jpeg)
jpg2ff < "$TMP"
;;
*)
+ if [ ! -x /usr/bin/convert ] ; then
+ printf "%s: cant convert from %s -- missing \`convert' program" "$0" "$FORMAT" >&2
+ printf "Run \`apt-get install imagemagick' to install it" >&2
+ exit 1
+ fi
convert "$TMP" png:- 2>/dev/null | png2ff 2>/dev/null
;;
esac