PHP funkce imagecrop()
06. 07. 2020Dostupnost ve verzích: PHP 5.5.0
Crop an image using the given coordinates and size, x, y, width and height
Parametry
Parametr | Datový typ | Výchozí hodnota | Poznámka |
---|---|---|---|
$image | resource | An image resource, returned by one of the image creation functions, such as {@link https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}. | |
$rect | array | Array with keys "x", "y", "width" and "height". |
Návratové hodnoty
resource
|bool Return cropped image resource on success or FALSE on failure.
Další zdroje
- https://www.php.net/manual/en/function.imagecrop.php
- https://www.php.net/manual/en/function.imagecreatetruecolor.php imagecreatetruecolor()}.
Jan Barášek Více o autorovi
Autor článku podniká jako fullstack senior developer v Praze. Spravuje 300 různě velkých webových projektů, fungujících dodnes. Během spolupráce nabral hluboké zkušenosti, které na tomto webu předává dál.
Rád vám pomůžu:
Kontakt Konzultace a služby Nabídka spolupráce