+ $ECHOCOMMAND "Completed generating $2 for $totalimages images"
+}
+
+function generate_thumbs() {
+ if [ ! -d icons ]; then
+ mkdir icons
+ fi
+
+ if [ ! -w icons ]; then
+ $ECHOCOMMAND "Can't write to icons directory, exiting"
+ exit 16
+ fi
+
+ generate_resized_images $WIDTH icons
+}
+
+function generate_medium() {
+ if [ ! -d medium ]; then
+ mkdir medium
+ fi
+
+ if [ ! -w medium ]; then
+ $ECHOCOMMAND "Can't write to medium directory, exiting"
+ exit 32
+ fi
+
+ generate_resized_images $MEDIUMWIDTH medium