Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tushar-rishav/pynail
:fork_and_knife: Creating thumbnails.
https://github.com/tushar-rishav/pynail
Last synced: about 2 months ago
JSON representation
:fork_and_knife: Creating thumbnails.
- Host: GitHub
- URL: https://github.com/tushar-rishav/pynail
- Owner: tushar-rishav
- License: gpl-3.0
- Created: 2015-08-02T11:17:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T18:45:54.000Z (over 9 years ago)
- Last Synced: 2024-10-13T09:47:54.156Z (3 months ago)
- Language: Python
- Homepage:
- Size: 195 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Pynail
Creating thumbnails efficiently using Multiprocessing.## [Demo](https://cloud.githubusercontent.com/assets/7397433/9384866/bee546ee-4770-11e5-8c61-20496f8fa7b9.gif)
![Pynail](https://cloud.githubusercontent.com/assets/7397433/9384866/bee546ee-4770-11e5-8c61-20496f8fa7b9.gif)
##Installation
```sh
python setup.py install
```## Usage
######For help
```sh
pynail -h```
######For creating thumbnail of single image
```sh
pynail -i 'source_img_path' -t 'target_img_path' -s 'width,height' -f 'format'```
######For creating thumbnail of all images in an entire directory
```sh
pynail -c 'source_dir_path' -d 'target_dir_path' -s 'width,height' -f 'format'```
## Example
```sh
pynail -c /home/tushar/ -d /home/tushar/ -s "300,300" -f "png"
```
```sh
pynail -i /home/tushar/vector.png -t /home/tushar/tyo.png -s "300,300" -f "JPEG"```
######Make sure to add valid file format in last parameter. Eg. JPEG is valid not JPG.## License
![gpl](https://cloud.githubusercontent.com/assets/7397433/9025904/67008062-3936-11e5-8803-e5b164a0dfc0.png)