---
title: gify.sh – back to bash scripting
author: Danilo M.
-type: post
+type: article
date: 2016-01-25T12:41:06+00:00
featured_image: /uploads/2016/01/G0092546.jpg
categories:
# #
#--------------------------------------------------------------------------------#
-# ERROR & EXIT STATUSES
+# ERROR & EXIT STATUSES #
SHOWHELP=61
USERABORTED=62
E_NOIMAGES=75
E_UNKNOWNOPT=76
-# TOOLS
+# TOOLS #
PWD=$(pwd)
MOGRIFY=$(which mogrify)
CONVERT=$(which convert)
-# we need mogrify and convert from the imagemagik toolset for this script to work
+# we need mogrify and convert from the imagemagik toolset for this script to work #
if [[ ! -x $MOGRIFY || ! -x $CONVERT ]]; then
showerror missingdeps
exit $E_MISSINGDEPS
fi
-# showhelp
+# showhelp #
showhelp ()
{
case $1 in
esac
}
-# showerror
+# showerror #
showerror ()
{
if [ -z $1 ];then