Let's say you have a photo of a certain width and height, and you
want to slice off a section of it. For this example we'll assume
that your photo has a width of 1,500 pixels and a height of 1,051
pixels, and you want to reduce its height to 1,000 pixels by
slicing off a strip from the bottom. You'll have to specifiy the
size of the cut out image and the offset from the upper left
corner of the old image by choosing a size of 1500x1000 and an
offset of 0+0.
First install Imagemagick using these commands:
sudo apt-get update
sudo apt-get install imagemagick
And then you can crop the photo using this command:
convert photo.jpg -crop 1500x1000+0+0 photo-cropped.jpg