ImageMagick is great for doing things like this from command-line if you need to write batch scripts for image processing:

http://www.imagemagick.org/Usage/crop/#crop_tile