| « The Problem of NDA | Conditional Expression - Difference between two numbers » |
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.