Skip to content Skip to sidebar Skip to footer

Pil/pillow Image Output Is Redder Than The Desired Rgb Values

I've been trying to generate the equivalent of matplotlib's matshow function as a PIL image. During this process, I realized that the colors that I'm generating by applying the col

Solution 1:

Without the "outputImage.show()" for PIL, the image seems to be rendered properly when saving as a PNG. The visual output is incorrect, and when saving after the visual output has been displayed, the saved image reflects what was rendered by the original output.

Furthermore, I could only reproduce this issue on my Win8 machine under Python 3.4.1 with PIL 2.5.1. On Python 2.7.9 in Win8 with PIL 1.1.7, the displayed image failed to render when using the show() command (it keeps saying that the file is missing) and the saved image is correctly colored.

Post a Comment for "Pil/pillow Image Output Is Redder Than The Desired Rgb Values"