How to create a collage using Python code?

I understand that none of the code I would not write, but I hope I come across on the course or library) I Have a list of links or have downloaded the image (no difference), and I need using Python code to create a collage (images ≈ 100). Please suggest a library or code)
April 4th 20 at 00:47
4 answers
April 4th 20 at 00:49
Sometimes you can use the search, then get to find ready-made solutions.
It's, like, console? - Hillary.Gleichner commented on April 4th 20 at 00:52
@Hillary.Gleichner, how else are you going to run python code? - laverna_Littel commented on April 4th 20 at 00:55
@laverna_Littel, Perhaps I do not understand, but I would like your finished code to connect the library... - Hillary.Gleichner commented on April 4th 20 at 00:58
@Hillary.Gleichner, what's the problem in your code is ready to copy the code given above? - laverna_Littel commented on April 4th 20 at 01:01
April 4th 20 at 00:51
is the library PIL I combined 3 images into one.
100 photos fit? - Hillary.Gleichner commented on April 4th 20 at 00:54
@Hillary.Gleichner, have not tried, but see no reason why it might not fit. - chesley commented on April 4th 20 at 00:57
April 4th 20 at 00:53
Library Pillow (PIL)
Example

from PIL import Image

image1 = Image.new('RGB', (60, 30)) # create new image with size = (60, 30)
image2 = Image.open("img2.png") # open image to paste
image1.paste(image2, (0, 0)) # paste image2 into image1 (x1 = 0, y1 = 0)
image1.save("img_result.png") # save image

Links:
Image.new(mode, size, color=0)
Image.open(fp, mode='r')
Image.paste(im, box=None, mask=None)
Image.save(fp, format=None, **params)
April 4th 20 at 00:55
The library scikit-image:
from skimage.util import montage2d
It is also easy with the help of numpy and OpenCV.
It is also easy with the help of numpy and OpenCV.

This is equivalent to pinning pins with a sledgehammer - chesley commented on April 4th 20 at 00:58
@chesley, what exactly is the problem? - simone commented on April 4th 20 at 01:01

Find more questions by tags PythonImages