Check if image was upscaled in PHP - rest7/api GitHub Wiki
Check if image was enlarged in PHP using free API:
<?php
$url = 'http://server.com/image.png';
$data = json_decode(file_get_contents('http://api.rest7.com/v1/image_upscaled.php?url=' . $url));
if (@$data->success !== 1)
{
die('Failed');
}
echo '<pre>';
print_r($data);