1

I am a complete newbie to this coding and programming and I need your help guys.

blue = Image.open('blue_color.png')
blue.putalpha(128)
blue

output

ValueError: Could not save to PNG for display
MSH
  • 1,743
  • 2
  • 14
  • 22
Paban Giri
  • 21
  • 3

2 Answers2

0

The runtime is probably broken the runtime due to a library conflict during installation. The same case occurred in cv2_imshow(), which was working well.
In my case, running [Restart runtime] cleared the bug.

  • menu / Runtime / [Restart runtime]
WangSung
  • 259
  • 2
  • 5
0

If not too late, the file in that collection is not valid, just save a new blue png from google or something to the same place and crop it, it shouldn't give the same error with the replacement file.

D_Breedt
  • 86
  • 2
  • 13