You can use the convert command that comes with ImageMagick to extract parts of an image. You can cut out a 100-pixel-wide chunk from somewhere in the middle of an image: $ convert -crop 100x+0+0 orig ...