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 hashes)
Built Distribution
imarac-1.0.0-py3-none-any.whl
(5.1 kB
view hashes)