Strange Problem with Image manipulation class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Strange Problem with Image manipulation class (/showthread.php?tid=29722) |
Strange Problem with Image manipulation class - El Forum - 04-19-2010 [eluser]Shouvik-S-Mazumdar[/eluser] i have two functions - one for creating a thumbnail and another for optimizing a photo ( basically resizing it to a decent 800X600 with lesser quality ) Both these functions work as intended when run individually . However consider a scenario where i am uploading a file . After first uploading i want to create a thumbnail and then optimize it. Here comes the problem , only one of the following functions work and the other has no effect at all . the scenario is like //upload $filename = "something.jpg"; // getting it from upload data $this->createThumbnail($filename); $this->optimizePhoto($filename); only one of the above functions will execute ( the first one ..the second one has no effect ) ANY HELP ????? its really driving me crazy Code: public function createThumbnail($filename) Code: public function optimizePhoto($filename) Also any help in how facebook / orkut upload optimize uploaded photos ? Strange Problem with Image manipulation class - El Forum - 04-19-2010 [eluser]danmontgomery[/eluser] load() will only load libraries once unless a custom object name is specified... You should be using initialize() instead. |