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
 
<Imagick::chopImageImagick::clear>
^ImagickLast updated: Mon, 26 Oct 2026

Imagick::clampImage

(PECL imagick 3 >= 3.3.0)

Imagick::clampImage — Restricts the color range from 0 to the quantum depth.

Description

public function Imagick::clampImage(int $channel = Imagick::CHANNEL_DEFAULT): bool

Restricts the color range from 0 to the quantum depth.

Parameters

channel

Return Values

Returns true on success or false on failure.


<Imagick::chopImageImagick::clear>
^ImagickLast updated: Mon, 26 Oct 2026