Skip to main content

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


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.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

concat_images-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file concat_images-0.1.0.tar.gz.

File metadata

  • Download URL: concat_images-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for concat_images-0.1.0.tar.gz
Algorithm Hash digest
SHA256 821740c91dd5af1454d426f3a8e37f43840046ba9df923c486b37632590c2487
MD5 d26f27eb3ee210bb0c2b8dbfc23cfb01
BLAKE2b-256 748658d9e94245e89ce65497ba202812b24d47f2829b3f6869f2c6b5be8e6bf9

See more details on using hashes here.

File details

Details for the file concat_images-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: concat_images-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for concat_images-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5665c16020f30bf14d21db6a9fa3e3f941621b2e9bc411ca2b11af9cb412a36b
MD5 3cd4d259c589e888a86e750528bf9e08
BLAKE2b-256 bd83db4690b5ac1fdbbdfec3e2129bdd44a2025842d00a9810167d9d2a5edab5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page