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 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.7.tar.gz
(4.6 kB
view details)
Built Distribution
File details
Details for the file shrinky-0.0.7.tar.gz
.
File metadata
- Download URL: shrinky-0.0.7.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d7bcc436ab69a1a4de902212033f90bbad5c6db9dfb91bd799615e755315a9d8
|
|
MD5 |
2d2ba2369ebf35f617c6c3a0865ef521
|
|
BLAKE2b-256 |
03bea0244582c4c97425a755637a026e79e4b6c7439dc0643d7b9fd74b2a5d86
|
File details
Details for the file shrinky-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: shrinky-0.0.7-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4f63f4a8c1c46c574515c15686b7a864d73293bed01f309ea4708b038a5eaf7d
|
|
MD5 |
b6cf2f154a933b85780f6dc3baac6f5c
|
|
BLAKE2b-256 |
e428dbedbf4d14a546b2b7ca35f4a50c89ca2d46821ab7b3136fec70070c0a63
|