2019年12月31日 星期二

Intervention Image: Save image directly from an url with original file name and ext?

$path = 'https://i.stack.imgur.com/koFpQ.png';
$filename = basename($path);

Image::make($path)->save(public_path('images/' . $filename));

from : https://stackoverflow.com/questions/32828606/intervention-image-save-image-directly-from-an-url-with-original-file-name-and

沒有留言:

wibiya widget