ImageResize ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: ImageResize ? (/showthread.php?tid=55077) |
ImageResize ? - El Forum - 10-09-2012 [eluser]CI-Newb[/eluser] Hello, I have an image-resize going on an uploaded file. If I save the file as a new file ($config['new_image'] = './assets/userphotos/test1.jpg';) everything works as expected. No problems, all is a win! I'm resizing the image to 220x226. If I don't save it as a new file and let it overwrite itself it resizes the image to the correct dimensions but this is the final output: Image Error Any thoughts? The dimensions of the file are correct but as you can see the image is smaller then the dimensions. Code: $config['image_library'] = 'gd2'; ImageResize ? - El Forum - 10-09-2012 [eluser]CI-Newb[/eluser] Solved, I had if ($this->image_lib->resize()) under $this->image_lib->resize(); was resizing it twice *ugh* only took me like three days to realize it |