Image Resizing Newbie Help - 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: Image Resizing Newbie Help (/showthread.php?tid=27034) |
Image Resizing Newbie Help - El Forum - 01-30-2010 [eluser]brixxster[/eluser] Hello again guys, I have a code here that's suppose; 1. Save the image in "/uploads" directory. 2. If the image is saved, it will find the file to make a thumbnail version of it and save to "/uploads/thumbs" directory. I have it running successfully in saving the image in the /uploads directory but can't seem to find the error why it is not saving the thumbnail version under /upload/thumbs directory. Please help. The code. Code: function do_upload() Image Resizing Newbie Help - El Forum - 01-31-2010 [eluser]cereal[/eluser] Change $config['new_image'] to $config2['new_image'] Image Resizing Newbie Help - El Forum - 01-31-2010 [eluser]brianw1975[/eluser] as an aside, just to make sure: verify that /uploads/thumbs/ is writable Image Resizing Newbie Help - El Forum - 02-12-2010 [eluser]adaxa[/eluser] Good idea is to check if resize() is successful or not. By default no errors appear. You can override this using simple check like this: Code: if ( ! $this->image_lib->resize()) |