Images and script are hosted on the same account (one site), but we know only the URL of the image.
$image = \"http://example.com/images/full-1091.jpg\"
Images and script hosted on the same account (one site).
Then don't use a URL: Use the direct file path and filesize().