#!/bin/sh # This is a wrapper for all ImageMagick programs. # It solves the problem that delegates.mgk cannot be found. echo "$@" >>/tmp/wrapper.sh.txt # Define im_path, telling us where this script actually is im_path=`dirname $0` im_path=`dirname ${im_path}` # Specify the path to IM-4.2.9 # If the above method for some reason does not work, you can set im_path manually right here #im_path=/usr/local/imagemagick-4.2.9 # Set path to delegates.mgk export DELEGATE_PATH=${im_path}/share # Absolute program path ${im_path}/bin/`basename $0`.bin "$@" exit 0