CodeIgniter Forums
Resizing online pics - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Resizing online pics (/showthread.php?tid=49244)



Resizing online pics - El Forum - 02-12-2012

[eluser]capypara[/eluser]
Is it possible for CI to resize pictures that are stored on other websites (without downloading the pic onto my server first)?

Eg. i want to resize something and the code will go like this.


$config['image_library'] = 'gd2';
$config['source_image'] = 'http://i.istockimg.com/file_thumbview_approve/2987570/2/stock-photo-2987570-lop-rabbit.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width'] = 25;
$config['height'] = 25;

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

$this->image_lib->resize();


Resizing online pics - El Forum - 02-12-2012

[eluser]Aken[/eluser]
No.


Resizing online pics - El Forum - 02-12-2012

[eluser]CroNiX[/eluser]
I don't think anything is capable of manipulating images from foreign websites without downloading it first, unless that website had an api or something that allowed you to do so.


Resizing online pics - El Forum - 02-12-2012

[eluser]capypara[/eluser]
=(

I was kind of expecting it because of the error i got. Thanks for the replies.