Metadata-Version: 2.1
Name: shrinky
Version: 0.0.6
Summary: Shrinks images in the way I want
License: MIT
Author: James Hogkinson
Author-email: james@terminaloutcomes.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: Pillow (>=9.0.1,<10.0.0)
Requires-Dist: click (>=8.0.4,<9.0.0)
Requires-Dist: loguru (>=0.6.0,<0.7.0)
Description-Content-Type: text/markdown

# shrinky

[![PyPI](https://img.shields.io/pypi/v/shrinky.svg)](https://pypi.org/project/shrinky/)

Shrinks images in the way I want

## Installation

Install this library using `pip`:

    $ python -m pip install shrinky

## Usage

It's a CLI program, run `shrinky [OPTIONS] FILENAME`

    Options:
    -o, --output FILE
    -t, --output-type TEXT  New file type (eg jpg, png etc.)
    -g, --geometry TEXT     Geometry, 1x1, 1x, x1 etc.
    -q, --quality INTEGER   If JPEG, set quality
    -f, --force             Overwrite destination
    --delete-source         Delete the source file once done
    -d, --debug             Enable debug logging
    --remove
    --help                  Show this message and exit.

For example, if you want to turn `example.png` to a JPEG file at quality 45, shrunk within an 800x800 bounding box, you can go:

`shrinky -t jpg -q 45 -g 800x00 example.png`

You'll end up with `example.jpg`.

## Development

To contribute to this library, first checkout the code. Then create a new virtual environment:

    cd shrinky
    poetry install
    poetry run python -m shrinky etc etc

