uploading an image then resizing it - 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: uploading an image then resizing it (/showthread.php?tid=23566) |
uploading an image then resizing it - El Forum - 10-14-2009 [eluser]elusid[/eluser] Hello folks, I'm a codeigniter noobie and have been smackin' my head on the desk over this one piece of code... I've done my research here and on google,etc looking for a solution to no avail... so essentially what i'm trying to do is upload an image file with a a form and then make a copy of it and resize that image to a thumbnail. The way my code is now i'm not getting any error messages and the upload process seems to work fine. I didnt have GD installed at first and I fixed that and its loading fine after checking phpinfo(); here is my upload controller: Code: <?php Any helpful insights will be greatly appreciated. thanks! uploading an image then resizing it - El Forum - 10-14-2009 [eluser]bretticus[/eluser] try setting source_image to an absolute path: Code: $config['source_image'] = $upload_data['full_path']; uploading an image then resizing it - El Forum - 10-15-2009 [eluser]elusid[/eluser] [quote author="bretticus" date="1255599561"]try setting source_image to an absolute path: Code: $config['source_image'] = $upload_data['full_path']; Hi Bretticus, thanks for the advice. Unfortunately that did not work either. The file is uploaded with no problems but still no thumbnail is created. uploading an image then resizing it - El Forum - 10-15-2009 [eluser]elusid[/eluser] On a further note I tested GD again using this script: http://www.dagondesign.com/articles/checking-for-gd-support-on-your-server/ and everything was A-OK. uploading an image then resizing it - El Forum - 10-15-2009 [eluser]markup2go[/eluser] Your setup looks correct, did you check your logs to see if there's any hints being logged? |