https://github.com/hhsecond/hangar_pil
Hangar PIL plugin
https://github.com/hhsecond/hangar_pil
Last synced: about 1 year ago
JSON representation
Hangar PIL plugin
- Host: GitHub
- URL: https://github.com/hhsecond/hangar_pil
- Owner: hhsecond
- License: apache-2.0
- Created: 2019-10-19T08:28:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-26T05:21:44.000Z (over 6 years ago)
- Last Synced: 2025-02-15T00:19:16.379Z (about 1 year ago)
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hangar_pil
Hangar PIL plugin
hangar_pil provides `load`, `save` and `board_show` methods and supports jpg, jpeg, png, ppm, bmp, pgm, tif, tiff and webp files
## installation
```bash
pip install hangar_pil
```
## Usage - CLI
Examples here are with minimal options possible, checkout the hangar documentation for all available options
- Importing a directory full of images into hangar. Hangar uses hangar_pil to figure out which file formats are supported by hangar_pil and auto infer plugin at runtime. Note that `--height` and `--width` are plugin specific arguments
```bash
hangar import aset images_directory --height 299 --width 299
```
- Exporting: This exports the sample to the current directory
```bash
hangar export aset --format jpg --sample sample_name
```
## Usage - programmatically