Imagick::solarizeImage

(PECL imagick 2.0.0)

Imagick::solarizeImage — Applies a solarizing effect to the image

Beschreibung

boolImagick::solarizeImage
( int$threshold
)

Applies a special effect to the image, similar to the effect achieved in
a photo darkroom by selectively exposing areas of photo sensitive paper
to light. Threshold ranges from 0 to QuantumRange and is a measure of the
extent of the solarization.

User Contributed Notes 1 note

This is something neat that you can do to an image as part of making it artistic, probably in conjunction with other ImageMagick effects, like PosterizeImage and OilPaintImage. SolarizeImage shifts the whole color spectrum toward red for an image -- white gets pushed directly into red, blues get pushed into greens, etc.. It is mostly a psychedelic effect. You have the option of choosing one parameter for "Threshold", which is really simply how much of this effect you want to have in an image. The minimum value is 0, and using a negative number defaults it to 0. The maximum value is the Quantum Threshold. You can get this value by the ImageMagick function getQuantumRange. On my install of PHP, that value is set to 65535 (2^16). Going higher than the Quantum Range defaults to the Quantum Range. An image with this function performed on it at Threshold 0 has the maximum effect performed, and at Threshold maximum the image has no changes made to it at all.