title: Imagick: open file from path, resize, save to folder
body: <p>I'm trying to append several images together into one big image, but the first hurdle is actually just getting the image to open.</p>
  
  <p>I am attempting to do the following:</p>
  
  <ol>
  <li>Open image from path</li>
  <li>Size it with the specified dimensions</li>
  <li>Save it to the current folder</li>
  </ol>
  
  <p>I have the following:</p>
  
  <pre><code>define('WIDTH',  600);
  define('HEIGHT', 800);
  
  $img = new Imagick();
  $img-&gt;readImage('dress.jpg');
  $img-&gt;writeImage('image1.png');
  </code></pre>
  
  <p>I can get the image to save, but I do not know where to add the <code>WIDTH</code> and <code>HEIGHT</code> definitions?</p>
  
  <p>I tried doing the following:</p>
  
  <pre><code>$img-&gt;newImage(WIDTH, HEIGHT, $img);
  </code></pre>