Created
November 28, 2014 20:25
-
-
Save teopost/c61d831dd68e24652581 to your computer and use it in GitHub Desktop.
Image watermark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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