How to divide an image in X equal parts

Solution 1:

Install ImageMagick, and then use the command convert:

convert -crop 20%x100% rose.jpg rose2.jpg  

Explanation:

  • 20% is 1/5 of 100% and therefore will crop the image in 5 equal parts.
  • 100% so that it will not be cropped vertically.
  • rose.jpg is the original file.
  • rose2.jpg is the output.