|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-07-02 09:16 UTC] mkoppanen@php.net
  [2009-07-02 09:24 UTC] me at reso dot od dot ua
  [2009-07-02 18:15 UTC] mkoppanen@php.net
  [2009-07-02 18:27 UTC] me at reso dot od dot ua
  [2009-07-24 08:47 UTC] mkoppanen@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
Description: ------------ setImageChannelDepth seems to have no effect on the image. I have also tried converting the image to grayscale with $img- >setImageColorspace(imagick::COLORSPACE_GRAY); but it had no effect either. Reproduce code: --------------- <? $img = new Imagick("./test.jpg"); $img->setImageChannelDepth(imagick::CHANNEL_RED, 0); $img->setImageChannelDepth(imagick::CHANNEL_GREEN, 0); header("Content-type: image/jpeg"); echo $img; ?>