I am trying to display an image on VScode using Image.show from the pillow library but it doesn't work.
This is the code:
from PIL import Image
im = Image.open("/workspaces/105456256/project/before2.jpg")
im.show()
when I run this I don't get any error, instead, nothing happens. My OS is Windows 11. I tried the same code on PyCharm and it worked just fine.
Try using:
from PIL import Image
im = Image.open("/workspaces/105456256/project/before2.jpg")
im.show()
input("Press ENTER to exit") # pause
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With