Skip to main content

Shrinks images in the way I want

Project description

shrinky

PyPI

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
-d, --debug             Enable debug logging
--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

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

shrinky-0.0.5.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

shrinky-0.0.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file shrinky-0.0.5.tar.gz.

File metadata

  • Download URL: shrinky-0.0.5.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.1.0

File hashes

Hashes for shrinky-0.0.5.tar.gz
Algorithm Hash digest
SHA256 aa1f663ca04355b5bc04695e21a407fd87f3c116af2d739203dad019942cf7f2
MD5 930c6432afc50d83cb4573c4839d50a6
BLAKE2b-256 aad3f9a6dcb81ae0de0d4bc5c95b092f5fad9ebfc6f4a0018a0fa1f32d20e577

See more details on using hashes here.

File details

Details for the file shrinky-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: shrinky-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.1.0

File hashes

Hashes for shrinky-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 543e56ae640f1f7d54bd24ed5cc68b9fd880c8ffecb289317d2a730ff7ee19be
MD5 3dafc4d0ed0ec54fd0d3201ede34ec65
BLAKE2b-256 ac3a66a2e1c303d33a5512943b79c8d24018f031a099c941dab84912b2562c17

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