Image resizer
Resize images with face centering and cropping, export images into a directory.
Installation
Without face detection
With pip, from sources
$ python3 -m pip --user install git+https://gitlab.com/frague59/resize.git
With pip, from PyPi
$ python3 -m pip --user install photoResizer
With pipx
$ pipx install photoResizer
With face detection (opencv)
With pip
$ python3 -m pip --user install photoResizer[opencv]
With pipx
$ pipx install photoResizer[opencv]
Usage
$ photoResizer --help
Usage: python -m photoResizer [OPTIONS] IMAGES... OUTPUT_DIR
Resize images to a given width and height.
Options:
--version
-W, --width INTEGER Width of the output image, default: 600.
-H, --height INTEGER Height of the output image, default: 800.
-Q, --quality INTEGER Quality of the output image (JPEG output,
default: 90).
-f, --format [jpeg|png|tiff|webp]
Type of the output image, default: jpeg.
-p, --multiprocessing Use multiprocessing for image resizing,
default: False.
-F, --face-detection Use face detection for image resizing
(OpenCV required, default: False).
--help Show this message and exit.
IMAGES can be a list of image paths or a directory. In case of a directory, the pattern *.[Jj][Pp][Ee]?[Gg] is applied to the files.
Metadata
Release files for photoResizer 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| photoResizer-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for photoResizer-0.2.3-py3-none-any.whl |
Release files / photoResizer-0.2.3-py3-none-any.whl
| Download URL | photoResizer-0.2.3-py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c19bffe65a854db790ee3936057baf339b1eed399a5e9c10f3d8295ae42b568a
|
|
BLAKE2b-256 checksum How to use checksums |
092459bbabc55b5c84bd19f1037a74bd8fdd9dc768bc4d92c8392c71d85ba4df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.2
|
Security for photoResizer 0.2.3
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.