Shrinks images in the way I want
Project description
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
Project details
Release history Release notifications | RSS feed
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.6.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file shrinky-0.0.6.tar.gz
.
File metadata
- Download URL: shrinky-0.0.6.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.2 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3400e7d5e1730a29bb5d96579a27f94d011a3711e9cf1b732c917d1a7c56fc53 |
|
MD5 | c7f85aa7e1d87234e9e0387bfbc65fac |
|
BLAKE2b-256 | ce95653c3fa796759864c3f00f35cc2e7bc72a2017956d905ce109b6dce5b042 |
File details
Details for the file shrinky-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: shrinky-0.0.6-py3-none-any.whl
- Upload date:
- Size: 4.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2905eddd4ca96c7be7f38304611df2fc882585916cf55872549ab1b06406bca7 |
|
MD5 | b0121f1c3c15df7626504b0237a583f6 |
|
BLAKE2b-256 | b0a55a214246a4e5a72ef1ea8acf58abc31a59204e63419b59c8ab02e0bd22ca |