https://github.com/kumaraditya303/pysizer
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.
https://github.com/kumaraditya303/pysizer
pyinstaller python threads
Last synced: over 1 year ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/kumaraditya303/pysizer
- Owner: kumaraditya303
- License: mit
- Created: 2020-07-13T11:28:25.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2023-03-20T01:48:06.000Z (over 3 years ago)
- Last Synced: 2025-03-18T18:45:48.974Z (over 1 year ago)
- Topics: pyinstaller, python, threads
- Language: Python
- Homepage:
- Size: 48.8 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PySizer
   
# Introduction
```txt
____ ____ _
| _ \ _ _/ ___|(_)_______ _ __
| |_) | | | \___ \| |_ / _ \ '__|
| __/| |_| |___) | |/ / __/ |
|_| \__, |____/|_/___\___|_|
|___/
```
### 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
```sh
$ pip install pysizer
```
- Project will now be available as a command line utility
- Get Help
```txt
$ 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
```sh
$ pip install -e .[tests]
$ pytest
```
## Demo

# Project Made and Maintained By Kumar Aditya