Thumber
Create thumbnails. Specify dimensions or aspect ratio. If the aspect ratio from the input image is altered, fills the background with the same image, but blurred. Alternatively, just crop it without blur.
Install using pip:
pip install thumber
Usage
thumber dimensions <input_image> <width> <height> [--blur <blur_radius>]
thumber aspect <input_image> <ratio> [--blur <blur_radius>]
thumber crop <input_image> {--ratio <ratio> | --width <width> --height <height>}
Values for <mode>:
dimensionsaspectcrop
Examples:
- Produce a 1920x1080 image:
thumber dimensions image.png 1920 1080 --blur=30
- Produce an image whose width is 1.778x the height:
thumber aspect image.png 1.778 --blur=30
The closer to 0, the lower is the blur effect
- Produce a cropped image, without blur in the background:
thumber crop image.png --ratio=1.778
thumber crop image.png --width=1920 --heigth=1080
Gallery Examples
babel.webp (1024x1024) |
babel-dimensions-1920x1080.webp |
babel-aspect-0.5.webp |
babel-aspect-2.webp |
babel-cropped-1920x1080.webp |
|---|---|---|---|---|
License
This project is licensed under the MIT License.
Metadata
Release files for thumber 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| thumber-0.3.1.tar.gz | 4.9 kB | Without provenance | Details for thumber-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thumber-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for thumber-0.3.1-py3-none-any.whl |
Total release size: 10.1 kB
Release files / thumber-0.3.1.tar.gz
| Download URL | thumber-0.3.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b664be986ce9e79d9f8e578086c87330d05250b8c8e3c4a1474a7f789ee27e2f
|
|
BLAKE2b-256 checksum How to use checksums |
5126537045f6598893856044137744130892356506cff7857f461fd72f7519e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.1
|
Release files / thumber-0.3.1-py3-none-any.whl
| Download URL | thumber-0.3.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9aaf97775ad35f0a7c504dba6edcd35cd36a65818f83f67321a59585da84961
|
|
BLAKE2b-256 checksum How to use checksums |
9373fbe4d811e4d81778f97bd548f215b1d4929b577d811f71562c17475e6b12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.1
|
Security for thumber 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.