Tool to check ratio of image.
Project description
imarac
imarac (for image ratio checker) is a CLI tool developed to check the ratio of an image. It's really useful to print photo with the good ratio!
Description
This tool is useful to walk into a directory and check the ratio of every image file.
Dependencies
- click to easily create a CLI
- rich to create a beautiful CLI
- filetype.py to detect file type
- imagesize to detect image size
Installation
pip install imarac
Usage
Usage: imarac [OPTIONS]
Options:
-d, --dir, --directory DIRECTORY Directory to check. [required]
-r, --ratio FLOAT RANGE Image desired ratio. [x>0; required]
-v, --verbose Add more information during processing.
--help Show this message and exit.
Example
For a normal use:
imarac -d my-holyday-pictures -r 1.5
📂 /path/to/my-holyday-pictures
┣━━ 📂 thecat
┗━━ 📂 nature
┗━━ beautifulmontain.jpg (ratio: 1.3)
With verbose option:
imarac -d my-holyday-pictures -r 1.5 -v
📂 /path/to/my-holyday-pictures
┣━━ 📂 thecat
┃ ┣━━ mycat.jpg (ratio: 1.5)
┃ ┗━━ mycatwithme.jpg (ratio: 1.5)
┗━━ 📂 nature
┣━━ awesomecliff.jpg (ratio: 1.5)
┣━━ beautifulmontain.jpg (ratio: 1.3)
┗━━ infinitesea.jpg (ratio: 1.5)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
imarac-1.0.0.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file imarac-1.0.0.tar.gz
.
File metadata
- Download URL: imarac-1.0.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac4d7cd28d3e9e851fa2d110b8ae562c65d22f04bf946a2ae4e3fc3a36c986ef |
|
MD5 | 595947bf7bc8aac0c859b42595a5bb8f |
|
BLAKE2b-256 | 2ac637366ee7355ac13ee21d34206d971300f905bbe1f9713cf5df11f306fd23 |
File details
Details for the file imarac-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: imarac-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eed83f228b40962b7e58b26cf57f245732486a69ecf7544c84bfbc3504c7a13 |
|
MD5 | e5b5d73c94ed7b148c7e0bf133d6f28b |
|
BLAKE2b-256 | 08746695ac1318acd3cd166bdc2050e22e2f1782aa621bc21ca3037461b81786 |