Photo Resizer, used mainly for Id cards and other documents.
Project description
Image resizer
Resize images with face centering and cropping, export images into a directory.
Installation
Without face detection
With pip
$ python3 -m pip --user install git+https://gitlab.com/frague59/resize.git
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.
-H, --height INTEGER Height of the output image.
-Q, --quality INTEGER Quality of the output image.
-f, --format [jpeg|png|tiff|webp]
Type of the output image.
-p, --multiprocessing Use multiprocessing for image resizing.
-F, --face-detection Use face detection for image resizing
(openCV required).
--help Show this message and exit.
IMAGES
can be alist of image paths or a directory.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for photoResizer-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc10038c2692f25b7ffaaf9790b1bdcefcbe51fa5e07312863d44205caa74a15 |
|
MD5 | 0376a4f9a881d7758cef33923543a031 |
|
BLAKE2b-256 | faea3a680b5f21c8afb9a11cf45d4430de81e10b953b2e1f8fb3faa9071c6faf |