如何通过PHP从这个URL保存图像

I have URLs like this:

https://strg.global/getImage.php?app=mgm&type=adinda-kennedy&imgId=MGM%20Adinda%20Kennedy%20e6057b8e-aa68-4461-8c9a-1d069fc021a4.jpg&size=1080&cachebreaker=1500536003696`

When you visit it the image downloads automatically.

How can I get and save it via PHP?

I've tried file_get_content(), but it returned info in inappropriate format for saving. I've tried to use Intervention image library and it's method Image::make($url), but it hasn't worked either.

Get the content from the URL, then create an image from the string you get back with (surprisingly) "imagecreatefromstring". After you have the image you can simply display it or save it :

$Res = file_get_contents($URL);
$Img = imagecreatefromstring($Res);
imagepng($Img,"FileName.png");
imagedestroy($Img);