Batch processing in Photoshop.
Here's a link on the tutorial:
http://www.creativemac.com/2002/04_a...ls/psbatch.htm
Basically you write a rule set, then hit the automate button.
It's been awhile since I used Linux and I think the only thing available in the way of graphics is Gimp.