- file_get_contents: documentation ( source)
- json_encode: documentation ( source)
<?php
$image = file_get_contents('https://images.google.com/intl/en_ALL/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png');
$json = json_encode($image);
echo $json;