Ted_Smith
April 20th, 2007, 06:14 PM
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)
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) :
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
First, install the imagemagick suite (http://www.imagemagick.org)
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) :
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