Image upload + resize + store at DB. Some problems - 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 upload + resize + store at DB. Some problems (/showthread.php?tid=4887) |
Image upload + resize + store at DB. Some problems - El Forum - 12-21-2007 [eluser]bewhite[/eluser] I'm trying to create script that will process uploading image. This script should resize uploaded item and then store it at the database. Since I don't need file at the filesystem I am trying to rewrite temporary file created by the Apache by the resized image file. Code: $file = null; Something is wrong here because image is at the DB but it have initial sizes. I can't find where is the error. Can anybody help me? Image upload + resize + store at DB. Some problems - El Forum - 12-21-2007 [eluser]gunter[/eluser] if you set Code: $config['create_thumb'] = TRUE; if you set it to FALSE it resizes the original file... Image upload + resize + store at DB. Some problems - El Forum - 12-21-2007 [eluser]bewhite[/eluser] [quote author="gunter" date="1198281126"]FILE_[/quote] Ah. Yes. I have forgot about this character I have switched 'create_thumb' to the FALSE but the result is the same. Additionally, I have added error catching block: Code: if (!$this->image_lib->resize()) Any other ideas? Image upload + resize + store at DB. Some problems - El Forum - 12-21-2007 [eluser]bewhite[/eluser] BTW, I have tried to run this code both on the GIF and JPG files. The result is the same - nothing. |