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

This command appends 1.jpg and 2.jpg horizontally. What is the command to do this vertically?

Tim
  • 2,367
  • 2
  • 16
  • 23
GuillaumeThomas
  • 1,695
  • 3
  • 17
  • 17

3 Answers3

109

For vertical stacking (top to bottom):

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

For horizontal stacking (left to right):

convert +append 1.jpg 2.jpg out.jpg
Gaff
  • 18,569
  • 15
  • 57
  • 68
19

Use -append to stack images top-to-bottom.

Use +append to stack images left-to-right.

Source: http://imagemagick.org/script/command-line-options.php#append

jox
  • 293
  • 2
  • 5
14

For latest imagemagick from V7 , the following is command

magick input1.jpg input2.jpg -append out.jpg
user981525
  • 141
  • 1
  • 2