imagecrop

(PHP 5 >= 5.5.0)

imagecropCrop an image using the given coordinates and size, x, y, width and height

Description

resource imagecrop ( resource $image , array $rect )

Warning

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

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

Return Values

Return cropped image resource on success or FALSE on failure.

Коментарии

It appears that imagecrop() will output a black line along the bottom the resulting image until version 5.6.12. Your only choices are to upgrade PHP or use imagecopyresampled().

http://php.net/ChangeLog-5.php#5.6.12 (bug #67447)
2016-07-01 20:48:51
http://php5.kiev.ua/manual/ru/function.imagecrop.html

    Поддержать сайт на родительском проекте КГБ