Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Gmagick::__constructGmagick::cropthumbnailimage>
^GmagickLast updated: Mon, 26 Oct 2026

Gmagick::cropimage

(PECL gmagick >= Unknown)

Gmagick::cropimage — Extracts a region of the image

Description

public function Gmagick::cropimage(
     int $width ,
     int $height ,
    int $x,
    int $y
): Gmagick

Extracts a region of the image.

Parameters

width

The width of the crop.

height

The height of the crop.

x

The X coordinate of the cropped region's top left corner.

y

The Y coordinate of the cropped region's top left corner.

Return Values

The cropped Gmagick object.

Errors/Exceptions

Throws an GmagickException on error.


<Gmagick::__constructGmagick::cropthumbnailimage>
^GmagickLast updated: Mon, 26 Oct 2026