0

我正在尝试从 URL 中获取熊的图片并将其另存为aabear.jpg. 但是,我的代码失败了。怎么了?

$config['image_library'] = 'gd2';
$config['source_image'] = 'http://thejuxtapositionape.blog.com/files/2012/03/polar-bear-pup.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width']     = 75;
$config['height']   = 50;
$config['new_image'] = 'aabear.jpg';

$this->load->library('image_lib', $config); 
4

1 回答 1

1

似乎图像库仅将本地文件作为输入。

使用polar-bear-pup.jpg制定

于 2013-01-17T23:02:44.987 回答