title: imagecreatefromjpeg parameter not working
body: <p>I have used imagecreatefromjpeg("1.jpg")  it is showing</p>
  
  <pre><code>Warning: imagecopy() expects parameter 1 to be resource, string given in E:\wamp\www
  </code></pre>
  
  <p>I am not understanding why it is not working and it tacks as a string, though it is a existing image name on the same file.</p>
  
  <pre><code>$new_image = "assets/small/i/m/".imagecreatetruecolor($size_width, $size_height);
              $file = "upl_13541718681354171868The-best-top-desktop-dolphin-wallpapers-hd-dolphins-wallpaper-3.jpg";
              $image = imagecreatefromjpeg($file);
  imagecopy($new_image, $image, 0, 0, 0, 0, $size_width, $size_height);
  imagejpeg($imageOutput, $outputPath, 100);
  </code></pre>