TemplatesModelTemplate::cropImage
Crop an image.
Signature
public function cropImage(string
$file,
string
$w,
string
$h,
string
$x,
string
$y )
Parameters
-
$file
- The name and location of the file
-
$w
- width.
-
$h
- height.
-
$x
- x-coordinate.
-
$y
- y-coordinate.
Returns
- boolean
- true if image cropped successfully, false otherwise.