First let me say, I've already found and reviewed the posts: Trouble forcing TrueColorMatte and -type command not working
However, I'm still having the same issue where images with no color content are being saved as grayscale. I can use the IM command line tools to force PNGs to save as TrueColor however I'm using a python api for MagickWand. Its my own variation of the project here.
My code is preforming the following steps:
Code: Select all
wand=api.NewMagickWand()
api.MagickReadImage(wand, "allGrayImage.png")
api.MagickSetImageFormat(wand, "png24")
api.MagickSetImageDepth(wand, 8)
api.MagickSetImageType(wand, TRUE_COLOR_TYPE)
print api.MagickGetImageType(wand)
api.MagickWriteImage(wand, "pleaseBeColor.png")