python-rescale
A simple tool to resize and crop an image
` rescale(image, size, mode=None) `
image: a PIL image object
size: a 2-tuple (width, height); at least one must be specified
mode: CROP_TL or CROP_BR
If no height or no width is specified, the mode won’t be taken into account, and the image will just be resized. If both width and height are provided, and the mode is set top CROP_TL or CROP_BR, the image will be cropped to the given size using the given mode. Note that the crop is made after the image as been resized (well not exactly, but the result is the same) to preserve as much as possible the content of the image. The resize is made so that the original ratio is preserved. The mode CROP_TL will keep the top left or the image, while CROP_BR will keep the bottom right of it.
Metadata
Release files for rescale 0.2
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 | |
|---|---|---|---|---|
| rescale-0.2.zip | 1.5 kB | Without provenance | Details |
Release files / rescale-0.2.zip
| Download URL | rescale-0.2.zip |
|---|---|
| Size | 1.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ddd2d5215336d51e0ef019666ad4e267abc2a735bda86632313c7a9adecf892
|
|
BLAKE2b-256 checksum How to use checksums |
2c3c8c1787ffd1bc8c333b45d006687e61eb200783feab021f510731f0260c3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for rescale 0.2
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.