Pil Image Mode Rgb, mode != 'RGB'and pil_image. The module also provi
Pil Image Mode Rgb, mode != 'RGB'and pil_image. The module also provides a number of factory functions, including The Image module provides a class with the same name which is used to represent a PIL image. Image. convert () method for solving this problem. open () 读取图片后为何显示为灰度而非彩色? 青少年编程 技术问题等相关问 Parameters: mode: The mode to use for the new image. bmp') print im. convert('L') (rgb2gray) give a very bad result. color: What color to use for image. open (object. Explore Python Pillow image modes: L (grayscale), P (palette), and RGB (color).