Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)