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 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
Metadata
Release files for shrinky 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| shrinky-0.0.9.tar.gz | 198.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| shrinky-0.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 203.6 kB
Release files / shrinky-0.0.9.tar.gz
| Download URL | shrinky-0.0.9.tar.gz |
|---|---|
| Size | 198.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a800ff72e19b9b4ce61647ed34b00277297e2ce6f21faa9ea9a31de9048fb548
|
|
BLAKE2b-256 checksum How to use checksums |
203ba7aa4f5940d8c4df39a498e1e646a6582ab0eefc70eab27355be56bd1703
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / shrinky-0.0.9-py3-none-any.whl
| Download URL | shrinky-0.0.9-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a28e70266fd3012f2f9d37fad262bdbab5cf498bb242b7feacc3420a6be1ed8
|
|
BLAKE2b-256 checksum How to use checksums |
4abe533031434f8d26bce2d98169e52d2f12f0a6c4f54586f1826c28fda94073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|