![]() |
Image resize + upload - 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: Image resize + upload (/showthread.php?tid=16607) |
Image resize + upload - El Forum - 03-11-2009 [eluser]clintonbeattie[/eluser] Hi, I am rushed with an app I have to build, otherwise I would have tried to attempt this myself, but I was wondering if anyone has detailed code for uploading an image, adding it's url to a database and creating a resized thumbnail? A lot to ask for I know. Any help much appreciated. Thanks, C Image resize + upload - El Forum - 03-11-2009 [eluser]Vi.[/eluser] I have written Auto resize image last month. I have added this function to CI but I can not find. Here is PHP code; Code: <?php Code: <?php I hope, I can help. Image resize + upload - El Forum - 03-11-2009 [eluser]pistolPete[/eluser] You should have a look at the Image Manipulation Class and the File Uploading Class. It does all you want with little code. Image resize + upload - El Forum - 03-11-2009 [eluser]bobbybaboon[/eluser] This tutorial was on Nettuts recently, although it doesn't create thumbnails for you: http://net.tutsplus.com/tutorials/php/creating-a-file-hosting-site-with-codeigniter/ Image resize + upload - El Forum - 03-11-2009 [eluser]NateL[/eluser] Here's a script I've been working on.... bits and peices are pulled out, but you'll get the point. Most of it can be found in the user guide Also note - to get my script working, I had to use a hack that cwt137 kindly submitted. This is the controller: Code: class Upload extends Controller the view is simply a form with an action that posts to do_upload Code: <?=form_open_multipart('admin/upload/do_upload');?> Image resize + upload - El Forum - 03-13-2009 [eluser]clintonbeattie[/eluser] I will be trying all these this weekend. Thanks for the replies!!! Will let you know how I get on. |