Skip to content

Instantly share code, notes, and snippets.

@jrm2k6
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrm2k6/7ba267d06823fe00a29d to your computer and use it in GitHub Desktop.
Save jrm2k6/7ba267d06823fe00a29d to your computer and use it in GitHub Desktop.
$client = new \GuzzleHttp\Client();
$img = $client->get('http://talkingshrimp.com/ts/wp-content/uploads/2009/11/I-dunno-lol11.jpg');
$img = Image::make($img->getBody()->getContents());
header("Content-type: image/jpeg");
echo $img->response('jpg');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment