#!/bin/sh
#
#
#

THUMBNAIL_SIZE=$1
ORIGINAL_PICTURE=$2
THUMBNAIL_FILENAME=$3

sudo convert -resize $THUMBNAIL_SIZE ${ORIGINAL_PICTURE} ${THUMBNAIL_FILENAME}
ls -l ${THUMBNAIL_FILENAME}

sudo chown smc ${THUMBNAIL_FILENAME}
sudo chgrp smc ${THUMBNAIL_FILENAME}
