Resize the bunch of pictures with Ubuntu

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 =)

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.