uploading an image then resizing it |
[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!
[eluser]bretticus[/eluser]
try setting source_image to an absolute path: Code: $config['source_image'] = $upload_data['full_path'];
[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.
[eluser]elusid[/eluser]
On a further note I tested GD again using this script: http://www.dagondesign.com/articles/chec...ur-server/ and everything was A-OK.
[eluser]markup2go[/eluser]
Your setup looks correct, did you check your logs to see if there's any hints being logged? |
Welcome Guest, Not a member yet? Register Sign In |