I was behind a proxy 🙁 So after a lot of research, i finally got it to work:
<?php
$aContext = array(
'http' => array(
'proxy' => '[PROXY_URL:PORT]',
'request_fulluri' => True,
),
);
$cxContext = stream_context_create($aContext);
$sImageURL ='http://image.jpg';
file_put_contents("image.jpg", file_get_contents($sImageURL, False, $cxContext));
var_dump(getimagesize("image.jpg"));
?>
Thanks for the help, much appreciated!