Skip to main content

Photo editing, add border and resize.

Project description

Vernissage - Image Processing Tool

Install

pipx install vernissage

Usage

Process a single image

vernissage process input.png output.jpg

Process with custom options

vernissage process input.png output.jpg \
  --max-size 1080 \
  --border-size 10 \
  --border-color 255,255,255 \
  --output-format JPEG

Batch process multiple images

vernissage batch input_directory/ output_directory/

Batch process with custom options

vernissage batch input_directory/ output_directory/ \
  --max-size 800 \
  --border-size 20 \
  --border-color 200,200,200 \
  --output-format PNG

Options

Option Short Default Description
--max-size -s 936 Maximum size for the largest dimension
--border-size -b 72 Border size in pixels
--border-color -c 250,250,250 Border color as R,G,B values
--output-format -f (auto) Output format (JPEG, PNG, etc.)
--aspect-ratio -a (auto) Target aspect ratio (e.g., '1:1', '16:9')

Features

  • Exact sizing: Final image will be exactly --max-size pixels on the largest dimension
  • Smart resizing: Images are resized to fit within the content area, preserving aspect ratio
  • Border handling: Border is added around the resized content
  • Format detection: Automatically detects input format and uses it for output
  • Batch processing: Process entire directories of images
  • Error handling: Clear error messages and validation
  • Aspect ratio control: Change output aspect ratio while preserving original image proportions

Examples

Create a 1080px image with 10px white border

vernissage process photo.jpg result.png --max-size 1080 --border-size 10 --border-color 255,255,255

Process all images in a folder to 800px with gray border

vernissage batch vacation_photos/ processed/ --max-size 800 --border-size 15 --border-color 200,200,200

Convert format and add border

vernissage process image.tif output.jpg --output-format JPEG --border-size 25

Convert 3:2 image to square aspect ratio

vernissage process landscape.jpg square_result.png --max-size 1000 --border-size 20 --aspect-ratio 1:1

Create widescreen 16:9 from 4:3 image

vernissage process photo.jpg widescreen.jpg --max-size 1200 --border-size 15 --aspect-ratio 16:9

Batch process with custom aspect ratio

vernissage batch portraits/ social_media/ --max-size 800 --border-size 10 --aspect-ratio 4:5 --output-format JPEG

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

vernissage-0.3.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

vernissage-0.3.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file vernissage-0.3.1.tar.gz.

File metadata

  • Download URL: vernissage-0.3.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for vernissage-0.3.1.tar.gz
Algorithm Hash digest
SHA256 5f25c4e1e5f8acf879bf675dbd23bfd603c2e6cc61bb8bf688945ca04d5888c4
MD5 f42bae029b804e77c94d7f6c4d7e8d03
BLAKE2b-256 11823e698f86f568b77dabef15bd28136b4b4a0e36e7613b1a42e7d1a3f6ff35

See more details on using hashes here.

File details

Details for the file vernissage-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: vernissage-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for vernissage-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f0058c0cb00e829381efd0e4708e7d7717237ebc7488d542aeb5f3c427d564c
MD5 eaac871369fd2b4e5113437379337a34
BLAKE2b-256 09d4d86df49060421b9513fa36c4799f56a39746197510e8618fcc74d818d63d

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