#!/bin/sh
#
#
#

CROP_AREA=$1
IMAGE_QUALITY=$2
ORIGINAL_PICTURE=$3
RESULT_FILENAME=$4

sudo convert -crop ${CROP_AREA} -quality	 \
	${IMAGE_QUALITY} ${ORIGINAL_PICTURE} ${RESULT_FILENAME}
 
ls -l ${RESULT_FILENAME}

sudo chown smc ${RESULT_FILENAME}
sudo chgrp smc ${RESULT_FILENAME}
