https://github.com/haranrk/haran-utils
A bunch of python utilities
https://github.com/haranrk/haran-utils
image-processing python utilities
Last synced: 9 months ago
JSON representation
A bunch of python utilities
- Host: GitHub
- URL: https://github.com/haranrk/haran-utils
- Owner: haranrk
- License: mit
- Created: 2019-03-19T09:26:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-06T11:28:46.000Z (about 7 years ago)
- Last Synced: 2025-02-05T04:49:13.459Z (over 1 year ago)
- Topics: image-processing, python, utilities
- Language: Python
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/py/haran-utils) [](https://opensource.org/licenses/MIT)
# Utils
A collection of utility functions and scripts I use.
## Installation
The package is uploaded on PyPi, therefore it can be installed via
```bash
pip install haran-utils
```
I've tested the package only on python3.6+. It may or may not work with older versions.
## Image scripts
These are a set of cli scripts related to image housekeeping. The syntax is -
```
utils image
```
You can use the `-h` arg to get help on the specific command
### List of available commands
1. `crop` - Crops images given in one folder and outputs to the target folder
2. `filter` -
Checks the resolution of all the files in the specified directory and moves them to the target directory if they are of a larger resolution
1. `summarise` - Checks the resolutions of images in all the sub-directories of the given directory and tells how many of images of a given resolution are there in a sub-directory. The image below is an output from the command.
