• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resizing online pics

#1
[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();

#2
[eluser]Aken[/eluser]
No.

#3
[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.

#4
[eluser]capypara[/eluser]
=(

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.