Skip to content

Commit

Permalink
Merge pull request dixitt5#156 from vasujindal1/main
Browse files Browse the repository at this point in the history
Create collage_maker.py
  • Loading branch information
dixitt5 authored Oct 22, 2022
2 parents 4944402 + c728b90 commit 879a31e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Python programs/collage_maker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from PIL import Image
import numpy as np
def collage_maker(image1, image2, name):
i1 = np.array(image1)
i2 = np.array(image2)
collage = np.vstack([i1, i2])
image = Image.fromarray(collage)
image.save(name)

# To Run The Above Function
collage_maker("image1.jpg", "image2.jpg", "new.jpg")

0 comments on commit 879a31e

Please sign in to comment.