最近在做一个图片算法,需要对图片做一个统一的处理。详见第一个通道的图片都是灰色的吗?但是我遇到了下面的问题:PaletteimageswithTransparencyexpressedinbytesshouldbeconvertedtoRGBAimages所以我查了一些关于indexedimage的资料(相关资料很散),参考了如下资料:IndexedimageSinglechannelpngdisplayedwithcolorsIndexedImagesMenuoftheotherPhotoandFlashpagesheresub-questionanswer:索引图像应该转换为GRB还是RGBA?索引图像是否支持所有图像格式?比如jpg、png、tif、gif等。如果用python判断单通道图像是“灰度图”还是“索引图”呢?
