https://github.com/dzucconi/alt-spelling
CLI tool to interlace images
https://github.com/dzucconi/alt-spelling
Last synced: 8 months ago
JSON representation
CLI tool to interlace images
- Host: GitHub
- URL: https://github.com/dzucconi/alt-spelling
- Owner: dzucconi
- Created: 2019-11-23T19:06:45.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T20:16:53.000Z (almost 2 years ago)
- Last Synced: 2025-02-07T08:14:48.931Z (10 months ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# alt-spelling
Install dependencies:
```
pipenv install
```
Run the script:
```
$ pipenv run python3 script.py --help
```
```
usage: script.py [-h] [--width WIDTH] [--height HEIGHT] [--size SIZE]
[--dpi DPI] [--anchor ANCHOR] [--filename FILENAME]
[--dir DIR] [--hue HUE]
optional arguments:
-h, --help show this help message and exit
--width WIDTH Target width in inches
--height HEIGHT Target height in inches
--size SIZE Size in pixels to slice tiles
--dpi DPI Target dots per inch
--anchor ANCHOR Crop anchor position
--filename FILENAME Output filename
--dir DIR Directory to process
--hue HUE Rotate hues
```
Example:
```
$ pipenv run python3 script.py --width=30 --height=36 --dir=source/example/*.jpg
# => Cropping ████████████████████████████████ 100%
# => Building map...
# => Building output...
# => Processing ████████████████████████████████ 100%
# => Saving...
# => Done.
```