base64_encode($image))); $reply = curl_exec($ch); curl_close($ch); $reply = json_decode($reply); var_dump($reply); printf('', $reply->data->link); $res = $reply->data->link; $res = 'https://images.weserv.nl/?url='.$res; echo $res; printf('', $res); } Imgur_API($image);