14

I am working to create a Google group for Ubuntu but one thing I want to do is create the main image that goes in the top (The one that divides into 5 pieces). How can I divide an image horizontally (Or vertically) via Terminal or GUI.

For example I grab an Ubuntu Quantal image and tell a GUI or terminal program to divide the image in 5 equal parts horizontally.

Zanna
  • 72,312
Luis Alvarado
  • 216,643

1 Answers1

15

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.
Zanna
  • 72,312
desgua
  • 33,215