CodeIgniter Forums
$this->image_lib->resize() to a new folder - 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: $this->image_lib->resize() to a new folder (/showthread.php?tid=38201)



$this->image_lib->resize() to a new folder - El Forum - 02-01-2011

[eluser]searain[/eluser]
It seems to me that it would make sense that $this->image_lib->resize() just add a new parameter to set up a new folder for me to save the resized images to a new folder.

But it is not in codeigniter 1.7.3 or codeigniter 2.0.

So we still have to write our own methods to do so, like the following thread?

http://ellislab.com/forums/viewthread/91549/#462668

Any other better solutions?


$this->image_lib->resize() to a new folder - El Forum - 02-02-2011

[eluser]Mat-Moo[/eluser]
It's not normally the job of libraries to ensure that paths are set up, so whilst I can understand where your coming from, I'm not sure I agree that this should be added. I did consider adding it to my image_moo class but based on my last comment I wont Smile


$this->image_lib->resize() to a new folder - El Forum - 02-02-2011

[eluser]searain[/eluser]
I used a simple solution, just copy the original photo to another folder before resize.