#!/bin/bash # To use this program, pleas supply an initial image, then the number of cuts # You want. width=`identify -ping -format '%w' $1` height=`identify -ping -format '%h' $1` no_v_slices=$2 no_h_slices=$3 file_prefix=$4