imagecrop

(PHP 5 >= 5.5.0, PHP 7)
Crop an image using the given coordinates and size, x, y, width and height
resource imagecrop ( resource $image, array $rect )
Parameters:
image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().

rect

Array with keys "x", "y", "width" and "height".

Returns:

Return cropped image resource on success or FALSE on failure.

This function is currently not documented; only its argument list is available.

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.