#!/bin/bash
WATERMARK="$HOME/Pictures/watermark/watermark.jpg"

echo "*****************************************"
echo "* Image Resize and Watermarking Script  *"
echo "* By Gilbert Mendoza -  SavvyAdmin.com! *"
echo "*****************************************"
echo " "

for each in ~/Pictures/temp/*{.jpg,.jpeg,.png}
 do
  echo "Working on $each ..."
  convert -resize 440 $each $each 2> /dev/null
  composite -gravity northeast -dissolve 15.3 $WATERMARK $each $each 2> /dev/null
  echo "... Done!"
 done
exit 0
