Why are image colors distorted in PyCharm?

Viewed 222

I wanted to read in JPG with Pillow and then show it with imshow from matplotlib, but the image doesn't look like the original file. What's wrong?

img = Image.open("my_pics/cat.jpg")
arr = np.array(img)
plt.imshow(arr)

enter image description here

1 Answers

The Dark-Mode in Pycharm alters the image (as of Feb. 22nd '22).

Maybe JetBrains will patch this in future updates.

Related