resize img two times - 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: resize img two times (/showthread.php?tid=40359) |
resize img two times - El Forum - 04-06-2011 [eluser]Unknown[/eluser] Hello, so the problem is this: I upload image, call my create thumb function and it creates the first file but not the second? And I don't know why. My code: Code: function _createThumb($fileName){ I get no error resize img two times - El Forum - 04-06-2011 [eluser]fesweb[/eluser] I might be under-thinking this, but it looks like you need to provide a $config['source_image'] for the second resize. resize img two times - El Forum - 04-06-2011 [eluser]fesweb[/eluser] Also, image_lib->clear() does NOT reset config params to their defaults, so you should re-declare all of the params that are important to the second resizing. resize img two times - El Forum - 04-07-2011 [eluser]Unknown[/eluser] My code works fine as it is. I was being an idiot ccc. Somehow I managed to copy(not move) my controller folder outside my application folder and then open my .php file in that wrong folder. Noticed something was wrong when I started changing other things(like returning text instead of 1) and nothing was happening, till then I thought something was wrong with lib and I was messing only with it settings. Silly me. Noticed this quite quickly but I'm slow on replying. Thank your for replies anyway |