如果对你有用的话,你可以用PHP下拉图像。您只需确保无论在何处“放置”图像,都需要具有写入权限。
我得到了下面的代码片段来处理您在上面放置的图像url。
// Remote image URL
$img_source = \'https://res.cloudinary.com/demo/image/upload/w_400,h_400,c_crop,g_face,r_max/w_200/lady.jpg\';
// Image path
// the tmp/ folder needs to have the correct write permissions.
$img_path = \'tmp/lady.jpg\';
// Save image
$results = file_put_contents( $img_path, file_get_contents( $img_source ) );
// returns the number of bytes that were written to the file, or FALSE on failure.
echo \'<pre>\';
print_r($results);
echo \'</pre>\';