Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Combines multiple images of the same size into a composite image.
Combine multiple images of the same size vertically. Usage:
python path/to/img_1.jpg path/to/img_2.jpg ... img_n.jpg
import sys
from PIL import Image
size = (1920, 1080 * len(sys.argv[1:]))
output ='RGB', size)
for i, image in enumerate(sys.argv[1:]):
output.paste(, (0, i * 1080))"output.png")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.