A command line tool for my image processing needs.
Project description
Image Wrench
A command line tool for my image processing needs. Multiple subcommands can be executed sequentially to form a processing pipeline.
Free software: MIT license
Documentation: https://imgwrench.readthedocs.io.
Usage
Usage: imgwrench [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...
The main command line interface function of imgwrench
Options:
-i, --image-list FILENAME File containing paths to images for processing,
defaults to stdin
-p, --prefix TEXT prefix for all output filenames before numbering
-d, --digits INTEGER number of digits for file numbering (default 4)
-c, --increment INTEGER increment for file numbering (default 1)
-k, --keep-names keep original file names instead of numbering
-f, --force-overwrite force overwriting output image file if it exists
-o, --outdir DIRECTORY output directory
-q, --quality INTEGER quality of the output images, integer 0 - 100
--help Show this message and exit.
Commands:
blackwhite Convert color images to black and white.
colorfix Fix colors by stretching channel histograms to full range.
crop Crop images to the given aspect ratio.
frame Put a monocolor frame around images.
resize Resize images to a maximum side length preserving aspect...
save No-op to enable saving of images without any processing.
stack Stack images vertically, empty space in the middle.
Features
Subcommands can be executed sequentially to form a pipeline
Command blackwhite for converting images to black and white
Command colorfix for fixing the colors of aged photographs
Command crop for cropping images to give aspect ratio
Command frame to put a monocolor frame around images
Command resize for resizing images
Command save for no processing, but saving images with the given parameters
Command stack for vertically stacking images
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.5.2 (2019-03-10)
use a custom parameter type for colors
0.5.1 (2019-03-09)
changed default frame width to 0.025
usage doc for frame subcommand
consistent alphabetic sorting of subcommands
use a custom parameter type for ratios
0.5.0 (2019-03-07)
blackwhite subcommand to convert color images to black and white; incl. doc
frame subcommand to put a monocolor frame around images; incl. tests
0.4.0 (2019-02-26)
convert RGBA mode PNG images to RGB (to enable saving as JPG)
crop subcommand to crop images to a specified aspect ratio
documentation for colorfix and crop
0.3.0 (2019-02-17)
-d/–digits option to specify number of digits in file names
-c/–increment option to define increment for file numbering
create non-existing output folder instead of complaining
0.2.0 (2019-01-30)
no-op save command for only saving images
raise exception if output image already exists
-f / –force-overwrite flag to enable overwriting output
tests for cli, pipeline and resize
0.1.1 (2019-01-29)
Fix __main__ module
0.1.0 (2019-01-29)
First release on PyPI.
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
Built Distribution
Hashes for imgwrench-0.5.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f6676582eacf502cc1d4f703f4a042c9a6a153c50f1a692aaab000aa133da52 |
|
MD5 | a06f26464e7552a41ee68ce08ddebf12 |
|
BLAKE2b-256 | 915b76d897516af1dd271d5c67ca7ab68631b53567a2624bfe8e91a34b35718b |