Us geeks mostly think of the command line as the best place for text
manipulation. It’s a natural with
grep and shell scripts. But
although you can’t necessarily view your results from within a typical
terminal window, it turns out to be pretty darn easy to analyze and
manipulate images from within a shell script.
Watermarking Images–from the Command Line
Source: Linux Journal