« The Problem of NDAConditional Expression - Difference between two numbers »

Preparing Photos for the Web: watermarking and resizing

09/05/11

Permalink 12:45:35 pm by Amarok, Categories: tech , Tags: , , , , , , ,

Once I needed to upload an album of about 50 phots. I wanted to pre-process them such as to put my copyright watermark and to make their sizes smaller.

I didn't really have a strong desire to open and close the GIMP image editor nearly 50 times. So, I decided to automate this process by writing two scripts.

The source code is here.

To make them executable (assuming you copied those files), you need to

chmod u+x placeWatermark.sh
chmod u+x resizePhotos.sh

If you want to run them from whichever place besides a current directory, you would need to copy those files into ~/bin, which is your home binaries directory.

These are basically my first shell scripts, so I would really appreciate any feedback. :) Also I hope that they will make watermarking your photos easier.

P.S. I could not find any decent code source plugins for the b2Evolution engine, so I posted those scripts on my wordpress blog.

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case sensitive)

1 comment

Comment from: assurances [Visitor] · http://www.bonne-assurance.com
****-
Thanks for this tip it's very useful.
04/11/12 @ 10:16

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case sensitive)
May 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Things about technologies that I want to share

Search

Categories

XML Feeds

powered by b2evolution free blog software