28

I have several images of different widths and heights that I would like to stack vertically about their respective centers. I've tried

convert 1.jpg 2.jpg 3.jpg -append out.jpg

But this aligns them to the left, I'd like it to be center-aligned.

bmikolaj
  • 383
  • 1
  • 3
  • 5

1 Answers1

37

Incorporate usage of the gravity ImageMagick command line option as in the below examples.

Side by side

convert 1.jpg 2.jpg 3.jpg -gravity center +append out.jpg

Stacked (one on top of the other)

convert 1.jpg 2.jpg 3.jpg -gravity center -append out.jpg

Additionally, you might also consider using the resize ImageMagick command line options to scale the pictures up in size to use more of the page.


Supporting Resources

Vomit IT - Chunky Mess Style
  • 40,038
  • 27
  • 84
  • 117