commit 1a724098736194ea68632621b6ab606de04cd297 Author: pierre geeraert Date: Sat Apr 11 18:25:45 2026 +0100 first commit diff --git a/images/portrait1.png b/images/portrait1.png new file mode 100644 index 0000000..e1c50b4 Binary files /dev/null and b/images/portrait1.png differ diff --git a/images/portrait2.png b/images/portrait2.png new file mode 100644 index 0000000..588a710 Binary files /dev/null and b/images/portrait2.png differ diff --git a/main.py b/main.py new file mode 100644 index 0000000..49df78f --- /dev/null +++ b/main.py @@ -0,0 +1,18 @@ +from PIL import Image + +# Opening the primary image (used in background) +img1 = Image.open(r"images/portrait1.png") + +# Opening the secondary image (overlay image) +img2 = Image.open(r"images/credit_agricole.png") + +img1 = img1.resize((300, 300)) +img2 = img2.resize((300, 300)) + +# Pasting img2 image on top of img1 +# starting at coordinates (0, 0) +img1.paste(img2, (0,0), mask = img2) + +# Displaying the image +img1.show() + diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3868fb1 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pillow