Home > PHP > Function > > Imagick::chopImage()

Imagick::chopImage()

Imagick::chopImage - Removes a region of an image and trims

Syntax

bool Imagick::chopImage (int $width, int $height, int $x, int $y)

Arguments

  • width - Width of the chopped area
  • height - Height of the chopped area
  • x - X origo of the chopped area
  • y - Y origo of the chopped area

Description

Removes a region of an image and collapses the image to occupy the removed portion.

Version

PHP PECL imagick 2.0.0

Return value

Returns TRUE on success.