Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Art & Design
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Art & Design
Discuss various aspects of Ubuntu and Art here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old April 20th, 2007   #1
Ted_Smith
Gee! These Aren't Roasted!
 
Ted_Smith's Avatar
 
Join Date: Nov 2005
Location: Derbyshire, UK
Beans: 218
Ubuntu 6.06
HOW TO resize and watermark lots of graphics files at once using Linux

Since I moved to linux a couple of years ago, I have always found it to be a terrible struggle to resize AND watermark a mass of pictures all at once using one command and if you was also wondering hwo to resize and watermark using Linux, here's the answer!

First, install the imagemagick suite (http://www.imagemagick.org)
Code:
sudo apt-get install imagemagick
That installs various graphics apps such as convert, mogrify, resize etc which are all part of the ImageMagick suite of tools.

As an exampe, if you want to resize all your JPEG files by 65% of their original width and then stamp a watermark on them in the middle, at the bottom of each picture, then just run this command from the terminal (change the values accordingly to fit your needs - this example assumes they are jpg's. If they're something else just change the extension type at the end or just use * for all files) :

Code:
mogrify -resize 65% -font Arial -pointsize 25 -verbose -draw "gravity south fill black text 0,33 'YOUR WATERMARK TEXT HERE' fill white text 1,32 'YOUR WATERMARK TEXT HERE' *.jpg
Ted

Last edited by Ted_Smith; April 20th, 2007 at 06:19 PM..
Ted_Smith is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:56 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry