Image resize + upload |
[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
[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.
[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.
[eluser]bobbybaboon[/eluser]
This tutorial was on Nettuts recently, although it doesn't create thumbnails for you: http://net.tutsplus.com/tutorials/php/cr...deigniter/
[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');?>
[eluser]clintonbeattie[/eluser]
I will be trying all these this weekend. Thanks for the replies!!! Will let you know how I get on. |
Welcome Guest, Not a member yet? Register Sign In |