Combine multiple images into one with customizable orientation, spacing, and alignment
Project description
concat-images
Combine multiple images into one with customizable orientation, spacing, and alignment.
Installation
pip install concat-images
Python Usage
from concat_images import load_images, concatenate_images
images = load_images(['a.png', 'b.png', 'c.png'])
result = concatenate_images(images, orientation='horizontal', spacing=10, alignment='center')
result.save('output.png')
# With custom background (transparent)
result = concatenate_images(images, 'vertical', 0, 'center', background=(0, 0, 0, 0))
CLI Usage
concat-images output.png img1.png img2.png [img3.png ...]
Options
| Option | Description | Default |
|---|---|---|
-o, --orientation |
vertical or horizontal |
vertical |
-s, --space |
Pixels between images | 0 |
-a, --align |
begin, center, or end |
center |
-b, --background |
Background color as R,G,B, R,G,B,A, or transparent |
255,255,255,255 |
Example
concat-images result.png a.png b.png c.png -o horizontal -s 10 -a center
Development
git clone https://github.com/mrpesho/concat-images.git
cd concat-images
pip install -e .[dev]
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
concat_images-0.2.0.tar.gz
(4.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file concat_images-0.2.0.tar.gz.
File metadata
- Download URL: concat_images-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fabee860a6f80bbdba14a9d87cb01db7da4cdce5833d533a1ed0eaf97be3e6f
|
|
| MD5 |
ecafa5a345b6d6eaa3405484fb9e4383
|
|
| BLAKE2b-256 |
423165a45252ff4a3fe43e97d890d7543f6df69b6f24248bba8b035b651b4b08
|
File details
Details for the file concat_images-0.2.0-py3-none-any.whl.
File metadata
- Download URL: concat_images-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da35f55c0240ebaa706487ba73f505220cddb36bedc80a0fb42add345d5e607c
|
|
| MD5 |
fd17f75f99d36e68cd0dd674747c1a1c
|
|
| BLAKE2b-256 |
819fc376f5b4e02af1ed5181b633c1181cdb200b8c544719d77e45818aedbaf8
|