downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Imagick::setImageDispose> <Imagick::setImageDelay
[edit] Last updated: Fri, 14 Jun 2013

view this page in

Imagick::setImageDepth

(PECL imagick 2.0.0)

Imagick::setImageDepthSets the image depth

Description

bool Imagick::setImageDepth ( int $depth )

Sets the image depth.

Parameters

depth

Return Values

Returns TRUE on success.

Errors/Exceptions

Throws ImagickException on error.



add a note add a note User Contributed Notes Imagick::setImageDepth - [1 notes]
up
-1
roland at rhauck dot de
4 years ago
There seems to be a slight problem with setting image or channel depth. Using Q16, setting the depth to 8 bit,  you will have a 16 bit file.
Doesn't matter with better previews / image processing programs. With Win systems the display for TIFF files is a kind of psychedelic art.
This took me hours until I did check with PhotoShop. Besides: even if it works with RGB and PNG files, this consumes resources. Have a look on file size.
Only way out: change to Q8.
IMHO there is no way to run Q8 and Q16 simultaneously.
The above said concerns also setImageDepth.

 
show source | credits | sitemap | contact | advertising | mirror sites