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.9.tar.gz (198.8 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.9-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shrinky-0.0.9.tar.gz
  • Upload date:
  • Size: 198.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shrinky-0.0.9.tar.gz
Algorithm Hash digest
SHA256 a800ff72e19b9b4ce61647ed34b00277297e2ce6f21faa9ea9a31de9048fb548
MD5 347bb6f4772d94baca4d46f3a26b332f
BLAKE2b-256 203ba7aa4f5940d8c4df39a498e1e646a6582ab0eefc70eab27355be56bd1703

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shrinky-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for shrinky-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2a28e70266fd3012f2f9d37fad262bdbab5cf498bb242b7feacc3420a6be1ed8
MD5 fe8160f3a0671fb4afdacdd7192ac97c
BLAKE2b-256 4abe533031434f8d26bce2d98169e52d2f12f0a6c4f54586f1826c28fda94073

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