How to split an image vertically using the command line

command lineimage manipulationimagemagickimagessplit

Say I have a large 800×5000 image; how would I split that into 5 separate images with dimensions 800×1000 using the command line?

Best Answer

Solved it using convert -crop geometry +repage:

convert -crop 100%x20% +repage image.png image.png