![]() |
Fit image within certain size? - 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: Fit image within certain size? (/showthread.php?tid=46458) |
Fit image within certain size? - El Forum - 11-01-2011 [eluser]dallen33[/eluser] I'm using the image manipulating class, which is great if you want to do simple resizing. But I want to fit an image within a certain size. I want it to just center the image within. So if I have a 1000x1000 image, I want it to fit/scale within 200x300. How can I accomplish this? It doesn't seem to be built into the image manipulation library. |