CodeIgniter Forums

Full Version: Resizing Images
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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.