This commit is contained in:
red 2023-11-06 22:30:24 +00:00
commit 85841d6522
4 changed files with 18 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
bin
include
lib
lib64
pyvenv.cfg

BIN
neil.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

12
neil.py Normal file
View File

@ -0,0 +1,12 @@
from PIL import Image
def open_and_display_image(image_path):
try:
image = Image.open(image_path)
image.show()
except Exception as e:
print("Error:", e)
image_path = "neil.png"
open_and_display_image(image_path)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
pillow