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::thumbnailimageGmagick::write>
^GmagickLast updated: Mon, 26 Oct 2026

Gmagick::trimimage

(PECL gmagick >= Unknown)

Gmagick::trimimage — Remove edges from the image

Description

public function Gmagick::trimimage(float $fuzz): Gmagick

Remove edges that are the background color from the image.

Parameters

fuzz

By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. This parameter represents the variation on the quantum range.

Return Values

The Gmagick object.

Errors/Exceptions

Throws an GmagickException on error.


<Gmagick::thumbnailimageGmagick::write>
^GmagickLast updated: Mon, 26 Oct 2026