Skip to content

Instantly share code, notes, and snippets.

@teopost
Created November 28, 2014 20:25
Show Gist options
  • Save teopost/c61d831dd68e24652581 to your computer and use it in GitHub Desktop.
Save teopost/c61d831dd68e24652581 to your computer and use it in GitHub Desktop.
Image watermark
#!/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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment