title: Cropping and resizing images in laravel
body: <p>I want to crop/resize an image in Laravel (4.2). But it doen't seem to work very well...</p>
  
  <p>So I Want to be able to upload an image, but resize it to a maximum width and height.</p>
  
  <p>How should I do this?</p>
  
  <p>The code I have now is:</p>
  
  <pre><code>//save the image
              $destinationPath = 'public/pictures/news';
  
              if (Input::hasFile('img'))
              {
                  $file = Input::file('img');
                  $file-&gt;move('public/pictures/news', $file-&gt;getClientOriginalName());
              }
  </code></pre>
  
  <p>So, I want a code in the <code>if()</code> statement, that crops the image. to a specified max-width and max-height.</p>
  
  <p>If someone could help me out, I would be very happy!</p>
  
  <p>Kindes regards,</p>
  
  <p>Robin</p>