Chop sides of an image with ImageMagick
You need ImageMagick for this. It's a cli tool for manipulating images.
convert original.png -crop +LEFT+TOP -crop -RIGHT-BOTTOM cropped.png
Obviously replace the LEFT/TOP/RIGHT/BOTTOM
keywords with how many pixels you want to chop.