Skip to content

Instantly share code, notes, and snippets.

@lcomino
Created July 22, 2015 02:41
Show Gist options
  • Save lcomino/f4fefd36d870f156405b to your computer and use it in GitHub Desktop.
Save lcomino/f4fefd36d870f156405b to your computer and use it in GitHub Desktop.
Script para adicionar marca d'água em massa como Imagemagic usando convert
fotos=$1
marcadagua=$2
destino=$3
cd $fotos
for i in *; do
echo $i
if [ -e "$i" ]; then
convert $i $marcadagua -gravity SouthEast -geometry +30+30 -normalize -composite $destino/$i
fi
done
@lcomino
Copy link
Author

lcomino commented Jul 22, 2015

usage ./marcadagua.sh fullpath/photos fullpath/watermark fullpath/target

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment