-1

How can I use ImageMagick (probably the montage command) to join png images into a new png, where each of the input pngs becomes a part of the final one? All vertically arranged?

Like so:

2 pngs of roughly equal width (±2px) and different heights joined on top of one another seamlessly.

I don't really mind so much what happens to excess/smaller widths.

theonlygusti
  • 11,032
  • 11
  • 64
  • 119

2 Answers2

0

this one:

convert -append img1.png img2.png out.png

e.g. from

enter image description here

enter image description here

will get

enter image description here

And the:

convert +append img1.png img2.png out2.png

will produce

enter image description here

clt60
  • 62,119
  • 17
  • 107
  • 194
0
convert 1.png 2.png -append result.png
  • To align left edges, add -gravity West.
  • To align right edges, add -gravity East.
  • To align centres, add -gravity center.

To add a transparent spacer between:

convert -background none 1.png -size 10x10 xc:none 2.png -append result.png

Oh, you've gone horizontal! Change -append to +append.

Mark Setchell
  • 191,897
  • 31
  • 273
  • 432