My programming platform is:
- Ubuntu 3.19
- ImageMagick 6.7.7
- Programming language: php
My code:
$img = new Imagick($image_input_24bit_bmp);
$img->setimagedepth(8);
$img->writeImage($image_output);
Then image_output is still 24-bit bmp image.
The thing I would like is convert the 24-bit bmp image to the 8-bit bmp image. Thanks.