PySizer
Introduction
____ ____ _
| _ \ _ _/ ___|(_)_______ _ __
| |_) | | | \___ \| |_ / _ \ '__|
| __/| |_| |___) | |/ / __/ |
|_| \__, |____/|_/___\___|_|
|___/
PySizer is a simple python command line program to resize images efficiently by Multi Threading and is 5 times the cpu count of the machine in this program and the current running threads is limited by the use of ThreadPoolExecutor, also shows a progress bar of and also supports searching for images recursively.
Features
- Quick & Efficient picture resizing
- Threads count is dependent on the machine i.e 5 * cpu count
- Support to find images recursively
- Auto rename file to avoid file name clashing in recursive mode
Quick Start
- Install the project with pip
$ pip install pysizer
-
Project will now be available as a command line utility
-
Get Help
$ pysizer --help
Usage: pysizer [OPTIONS]
____ ____ _
| _ \ _ _/ ___|(_)_______ _ __
| |_) | | | \___ \| |_ / _ \ '__|
| __/| |_| |___) | |/ / __/ |
|_| \__, |____/|_/___\___|_|
|___/
PySizer is a simple python command line program to resize images
efficiently by Multi Threading and is 5 times the cpu count of the
machine in this program and the current running threads is limited
by the use of ThreadPoolExecutor and also displays a progress bar
for the current progress.
Options:
--source PATH Source [default: .]
--dest PATH Destination [default: resized]
--height INTEGER Image height [default: 1080]
--width INTEGER Image width [default: 1920]
--threads INTEGER Number of threads [default: 40]
-r, --recursive Find images recursively [default: False]
-v, --verbose Verbose output [default: False]
--help Show this message and exit.
- Test the project with pytest
$ pip install -e .[tests]
$ pytest
Demo
Project Made and Maintained By Kumar Aditya
Metadata
Release files for PySizer 1.0.0
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 | |
|---|---|---|---|---|
| PySizer-1.0.0.tar.gz | 8.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PySizer-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / PySizer-1.0.0.tar.gz
| Download URL | PySizer-1.0.0.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
55ef02b6936d68fd229b8e3ad5186223a898e810a2351415266c36fcabf84e11
|
|
BLAKE2b-256 checksum How to use checksums |
942a9646cf2e6c7659b65f69cd696838b49e02bed17cb6e1ce2c0ee093a45231
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Release files / PySizer-1.0.0-py3-none-any.whl
| Download URL | PySizer-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f94ba5ab8b2f5017bc404aa2b19c31ed331bfb555c7c61fda4dbf763c2b2de2
|
|
BLAKE2b-256 checksum How to use checksums |
e6077cfc1fc377bd35f7f9e0a65723454a01dc11745567d036b082337a424f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
|
Security for PySizer 1.0.0
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.