file_get_contents to image and change quality

Posted by Chris on Stack Overflow See other posts from Stack Overflow or by Chris
Published on 2010-03-21T17:25:20Z Indexed on 2010/03/21 17:31 UTC
Read the original article Hit count: 125

Filed under:
|
|

Hey

I have some code that downloads an image from a remote server

$data = file_get_contents("$rURL");

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?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about image-processing