title: php Imagick rotate and merge
body: <p>i have 2 images one background and another one is layer first i want to rotate it then i want to place it somewhere using x and y.. it can be done using GD but in gd when rotate the image i get low quality and zigzag border.. so i tried to rotate in imagick it done its job good without zigzag and without loosing quality.. so i want to know how to place that rotated image to background...</p>
  
  <pre><code>Background
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/tanAf.jpg" alt="Background image"></p>
  
  <pre><code>Image_2
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/rtEN1.jpg" alt="layer image"></p>
  
  <p>Output should look like this</p>
  
  <p><img src="https://i.stack.imgur.com/gBM8o.jpg" alt="3"></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>The code I have tried so far:</p>
  
  <pre><code>&lt;?php 
    $imagick = new Imagick(); 
    $imagick-&gt;readImage('137.png'); 
    $imagick-&gt;rotateImage(new ImagickPixel('none'), -13.55); 
    $imagick-&gt;writeImage('my_rotated.png'); 
    $imagick-&gt;clear(); 
    $imagick-&gt;destroy(); 
  ?&gt;
  </code></pre>