title: ImageMagick: Layering Images with convert -composite with gravity center
body: <p><img src="https://i.stack.imgur.com/JnCPW.jpg" alt="enter image description here"></p>
  
  <p>background</p>
  
  <p><img src="https://i.stack.imgur.com/woCTx.png" alt="http://i.stack.imgur.com/wA2EL.png"></p>
  
  <p>overlay    </p>
  
  <pre><code>composite -gravity center overlay.png  background.jpg  result1.jpg
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/XgdA2.jpg" alt="http://i.stack.imgur.com/XgdA2.jpg"></p>
  
  <p>result1.jpg</p>
  
  <pre><code>convert -composite background.jpg overlay.png -gravity center result2.jpg
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/x7AS5.jpg" alt=""></p>
  
  <p>result2.jpg</p>
  
  <pre><code>convert -composite background.jpg -gravity center tool_marker.png  result3.jpg
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/1kTiV.jpg" alt=""></p>
  
  <p>result3.jpg</p>
  
  <p>How can I achieve the results from result1 while using convert as the executable rather than composite?</p>
  
  <p>Thanks!</p>