I was trying to create the photo gallery for my web site. So I had the folder with 87 pictures and the goal was to make the pictures smaller and add watermark on them to protect because these photos was shoot by myself.
I used imagemagic for these purposes.
sudo apt-get install imagemagic
You can use straight away, just go to your folder with photos (don’t forget to make a reserved copy) and type
mogrify -resize 75% *.jpg
It will make all photos that match expression to be resized to 75% of the initial size.
Then we need to add watermark.
mogrify -font /usr/share/fonts/truetype/msttcorefonts/Arial_Black.ttf pointsize 22 -verbose -draw "gravity south fill black text 0,33 'Australian Head Hunters Association' " *.jpg
And that’s how it’s done =)
Filed under: Ubuntu