title: How to move image to new folder?
body: <p>As the title says ..How to move/rename image to new folder?
  I have this so far and the new image is resized/cropped but it doesn't move to "new/" folder:</p>
  
  <pre><code>$in_filename = '4csrWqu9ngv.jpg';
  
  list($width, $height) = getimagesize($in_filename);
  
  $offset_x = 0;
  $offset_y = 0;
  
  $new_height = $height - 65;
  $new_width  = $width;
  
  $image     = imagecreatefromjpeg($in_filename);
  $new_image = imagecreatetruecolor($new_width, $new_height);
  imagecopy($new_image, $image, 0, 0, $offset_x, $offset_y, $width, $height);
  
  header('Content-Type: image/jpeg');
  imagejpeg($new_image);
  
  $move_new = imagejpeg($new_image);
  
  rename($move_new, 'new/' . $move_new);
  </code></pre>
  
  <p>As always any help is appreciated :)</p>