JImage::cropResize
Method to crop an image after resizing it to maintain proportions without having to do all the set up work.
Signature
public function cropResize(integer
$width,
[integer
$height = true,
[integer
$createNew = true]] )
Parameters
-
$width
- The desired width of the image in pixels or a percentage.
-
$height
- The desired height of the image in pixels or a percentage.
-
$createNew
- If true the current image will be cloned, resized, cropped and returned.
Returns
- JImage Object for chaining.