![]() |
Image Resizing doesn't work [Solved] - 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 Resizing doesn't work [Solved] (/showthread.php?tid=37604) |
Image Resizing doesn't work [Solved] - El Forum - 01-14-2011 [eluser]catiaresende[/eluser] Hi, I need some help because I don't understand why the code doesn't resize uploaded images. Actually I'm using GalleryCMS, so, I have the code to upload them, to create the thumbnail and, after that I added this code to resize: Code: function resize($fileName, $ext) { Below the code to upload, I have this too: Code: $uploadImage = '../galeria/fotos/'.$newname; Any idea? Greetings. Image Resizing doesn't work [Solved] - El Forum - 01-14-2011 [eluser]Cristian Gilè[/eluser] Is upload process performed with success? Is the source_image setting correct? Why do you call two times the resize method? It's not necessary! Code: $this->load->library('image_lib', $config); Cristian Gilè Image Resizing doesn't work [Solved] - El Forum - 01-14-2011 [eluser]catiaresende[/eluser] Cristian, thank you for your reply. The upload process and the thumbnail creation works fine. There's no problem with that, so I assume that the source it's ok, because it's the same. To write the resize process, I followed these instructions: http://ellislab.com/codeigniter/user-guide/libraries/image_lib.html. Have you have any idea about what's (not) happening? Image Resizing doesn't work [Solved] - El Forum - 01-14-2011 [eluser]catiaresende[/eluser] Hello again, Luckily I managed to do the resize. What I did was add the code for the resize function inside the thumbnail creation, instead of creating a new function. The final code looked like this: Code: $config['image_library'] = 'GD2'; Thanks again. |