SPB Git

Repository Public

planche.py 4.1 KB 107 lines python

1#!/usr/bin/env python32# =============================================================================3#                  SP BOUCHER | SOFTWARE & RESEARCH4#             ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5# =============================================================================6#7# PROJECT METADATA8# -----------------------------------------------------------------------------9# Project          : Valo-Plex iOS10# File             : Scripts/planche.py11# Description      : assemble des captures côte à côte pour les relire d'un12#                    coup d'œil. usage : planche.py sortie.png capture1.png13#                    capture2.png …14# Module           : Scripts15# Repository       : https://git.spboucher.ai/valo-plex-ios16# Project Website  : https://www.valo-plex.com17# Created          : 2026-12-0118# Last Modified    : 2026-12-0119#20# =============================================================================21# AUTHOR & PROFESSIONAL AFFILIATION22# =============================================================================23#24# Author           : Simon-Pierre Boucher25# Position         : Professor of Finance26# Institution      : Université du Québec en Outaouais (UQO)27# Department       : Département des sciences administratives28# Organization     : SP Boucher29#30# Website          : https://spboucher.ai31# Git              : https://git.spboucher.ai32#33# =============================================================================34# OFFICIAL CONTACT DIRECTORY35# =============================================================================36#37# General          : info@spboucher.ai38# Professional     : contact@spboucher.ai39# Direct           : simon@spboucher.ai40# Research         : research@spboucher.ai41# Development      : dev@spboucher.ai42# Support          : support@spboucher.ai43# Security/Admin   : admin@spboucher.ai44# Notifications    : notifications@spboucher.ai45#46# Preferred Contact: support@spboucher.ai47#48# =============================================================================49# COPYRIGHT & INTELLECTUAL PROPERTY50# =============================================================================51#52# Copyright (c) 202653# Simon-Pierre Boucher54#55# All rights reserved where applicable.56#57# This file is governed by the applicable project license,58# copyright notices, institutional agreements and relevant law.59#60# Unless expressly authorized by the applicable license or61# rights holder, copying, redistribution, sublicensing,62# publication and commercial exploitation are not permitted.63#64# Existing third-party rights and notices remain unaffected.65#66# =============================================================================67# CONFIDENTIALITY & SECURITY68# =============================================================================69#70# Classification   : Public71# Distribution     : Public repository; use is governed by the project license72# Security Contact : admin@spboucher.ai73#74# Access to this source does not independently grant permission75# to redistribute or disclose confidential materials.76#77# Do not embed credentials, private keys, access tokens,78# certificates or confidential personal information.79#80# =============================================================================81# LICENSE & MAINTENANCE82# =============================================================================83#84# License          : None specified (no license file in this repository)85# Maintainer       : Simon-Pierre Boucher86# Technical Contact: dev@spboucher.ai87#88# =============================================================================89# END OF SP BOUCHER SOURCE HEADER90# =============================================================================9192import sys93from PIL import Image9495sortie, fichiers = sys.argv[1], sys.argv[2:]96H = 140097images = []98for f in fichiers:99    i = Image.open(f).convert("RGB")100    images.append(i.resize((int(i.width * H / i.height), H), Image.LANCZOS))101planche = Image.new("RGB", (sum(i.width for i in images) + 12 * (len(images) - 1), H), "#888888")102x = 0103for i in images:104    planche.paste(i, (x, 0))105    x += i.width + 12106planche.save(sortie)107
Files main
Menu

Theme