user74200
user74200

Reputation: 273

Creating image table in python

Here is my problem: I have n images. They have the same width and height, they are png. I want to make an image(png) that contains a table out of them that have 5x(n/5) images in it by simply putting them next to each other.

I never tried creating images in Python, so could you help me what package and functions to use?

Upvotes: 6

Views: 4731

Answers (1)

user74200
user74200

Reputation: 273

It seems like this is so trivial everyone knows how to vote down but no one knows the answer, right?

OK, so the package is Image, to create a canvas we need Image.new(colour_mode, size=(x,y), colour) to put an image into this image we need Image.paste(image, (left, up, right, down))

Thanks a lot for nothing.

Upvotes: 7

Related Questions