CodeIgniter Forums
Resizing Images - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived General Discussion (
+--- Thread: Resizing Images (/thread-13487.html)

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.