D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] adding watermarks

 

On Tue, 2013-04-23 at 13:48 +0100, Grant Phillips-Sewell wrote:
> Excellent! Thanks Paul, this will come in very handy.
> 
> 
> On 23 April 2013 13:12, Paul Sutton <zleap@xxxxxxxxx> wrote:
>         Hi
>         
>         I am trying to add a simple creative commons watermark to an
>         image
>         
>         http://tuxtweaks.com/2009/08/batch-watermark-images-in-linux/
>         
I use this script to add "Out Of Print" WM over prints for a Customer 

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

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

for each in ~/test/temp/*{.jpg,.jpeg,.png}
 do
  echo "Working on $each ..."
  convert -resize 440 -pointsize 50 -font jd.ttf -fill rgba
\(255,255,255,0.9\) -gravity center -annotate +0+0 \"Sorry\ Out\ of\
Print\" $each $each 2> /dev/null
  echo "... Done!"
 done
exit 0

It works fine I copy them all to ~/test/temp first so I can keep the
Originals.
You can spec your font size and fill colour! 
-- 

________________________________________________________________________


Regards

Kevin Lucas
Minions Post Master(Sub) 
A dedicated Linux user
/usr/bin/microsoft
Skype minions_shop
www.minionsbandb.co.uk
www.tearooms.minionsbandb.co.uk
FaceBook Minions_shop
Po House, Minions,
Liskeard Cornwall 
PL14 5LE
01579363386






-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq