Combine 2 images side by side into 1 with ImageMagick (PHP)

后端 未结 4 1668
清酒与你
清酒与你 2021-02-08 09:28

I think this is an easy one.

I have 2 Pictures/JPGs and i want them to merge into one picture where the 2 are side by side.

So i have pic [A] and pic [B] and I w

4条回答
  •  醉梦人生
    2021-02-08 09:51

    Maybe you'll find the montage method easier to understand (this is probably what you had in mind when you tried it with composite -- but that one is for overlapping images, not for side-by-side montage...)

    montage                 \
      -background '#FFF9E3' \
      -geometry 200\!x\>    \
      -gravity west         \
       right+narrow.jpg     \
       left+wider.jpg       \
       result.jpg
    

提交回复
热议问题