CodeIgniter Forums
Resizing Images - 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: Resizing Images (/showthread.php?tid=13487)



Resizing Images - El Forum - 11-24-2008

[eluser]louis w[/eluser]
Is it possible to resize AND crop with the same request?

I am passing in these configuration values:

[width] => 200
[height] => 200
[x_axis] => -150
[y_axis] => 0


I am calculating the x axis myself given the size of the image, and the size I would like to output. The intention is that it would resize the image to fit the size I specify and crop off the ends that hang off. That way I can resize to an exact dimension an not have empty space.

Does not seem to work thou.