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     Resize to a maximum 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
--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 run:

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
uv run 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.8.tar.gz (188.9 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.8-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shrinky-0.0.8.tar.gz
  • Upload date:
  • Size: 188.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for shrinky-0.0.8.tar.gz
Algorithm Hash digest
SHA256 5d671916189518b4c1f13acb7dc51e82f13200367c53dc0d3fc477869f59910f
MD5 e75a23015954ef5dd81abb518c96c696
BLAKE2b-256 7108ebd2efa672b7cbb0dc9cee1d45ada9b2591e549ab6b7ab64c25253c14ac4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shrinky-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.0

File hashes

Hashes for shrinky-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 2b5846fa8e1bbd425ea504fbc4d5c575370b0dbe50c758416f4ca6358c1910a4
MD5 a2e5c8f8883b5e1665e2e2b6a5d5d677
BLAKE2b-256 ace0590c12be0fb91a29ccfd32edd929d197968a5bc8e220a65b1581ca04663d

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