title: file_get_contents to image and change quality
body: <p>I have some code that downloads an image from a remote server</p>
  
  <pre><code>$data = file_get_contents("$rURL");
  </code></pre>
  
  <p>I want to then change the quality of this image, but do not want to save it out to a file first, how do I convert $data into an image that I can then use in imagecopyresampled?</p>
  
  <p>Thanks</p>