There are all sorts of tricks you can do with Image Magick a few are listed here in an article in LINUX Focus magazine. Some of the tricks you can do are quite amazing too. The gentle introduction and a real good tutorial are here. Command line Image manipulations can also be done, see here for examples, you can also find some stuff here.