I'm using Image::Magick to generate a png file, which have an 8 bit color.
$im->Set(magick => 'png');
$im->Set(depth => ;
If I try to use Annotate to put a text over the image, the generated png will have 32 bit.
The problem is this image will be exported to pdf, and it seems the HTMLDoc doesn't support this image quality, and the image imported in pdf seems low quality (even though I set best_image_quality in htmlDoc).
So how can I set the image bit color depth (8b/24b) and image number of colors(true color, 256, high color etc)? I tried with $im->Set(depth => 24) but its not working. When I'm looking at the image in a graphic editor, it seems it has an unknown number of colors...