title: Combine 2 images side by side into 1 with ImageMagick (PHP)
body: <p>I think this is an easy one.</p>
  
  <p>I have 2 Pictures/JPGs and i want them to merge into one picture where the 2 are side by side.</p>
  
  <p>So i have pic [A] and pic [B] and I want to get pic [AB] (side by side).</p>
  
  <p>Both images have same width and height. In this case width=200px and height=300px. <em>But the 2nd Image should appear on position 200,0 .. also when imagewidth is smaller than 200px (200px is maxwidth)</em></p>
  
  <p>This is what I've tried (php):</p>
  
  <pre><code>exec($IMAGEMAGICK_PATH."composite picA.jpg -geometry +200+0 picB.jpg picAB.jpg");
  </code></pre>
  
  <p>I also tried the same with "-size 400x300" after "composite" but nothing happens.
  Problem is that the image picA.jpg is moved 200px and merged into picB.jpg, but the width of picAB.jpg is the same as picB.jpg is.</p>
  
  <p>I'm also not sure if "-geometry" is the correct command.</p>