Image Resizing doesn't work [Solved] |
[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.
[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è
[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-gui...e_lib.html. Have you have any idea about what's (not) happening?
[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. |
Welcome Guest, Not a member yet? Register Sign In |