Repository Public
1#!/usr/bin/env python32# Auto-Ka iOS v23# File: Scripts/sheet.py4# Description: planche de captures côte à côte pour la relecture visuelle. usage : sheet.py sortie.png a.png b.png …5#6# Author: Simon-Pierre Boucher7# Contact: contact@spboucher.ai8import sys9from PIL import Image10out, files = sys.argv[1], sys.argv[2:]11ims = [Image.open(f).convert("RGB") for f in files]12h = 150013ims = [i.resize((int(i.width * h / i.height), h)) for i in ims]14sheet = Image.new("RGB", (sum(i.width for i in ims) + 8 * (len(ims) + 1), h + 16), (128, 128, 128))15x = 816for i in ims:17 sheet.paste(i, (x, 8)); x += i.width + 818sheet.save(out); print(out)19