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

https://github.com/olegwock/resize-img

Console tool for image resize
https://github.com/olegwock/resize-img

Last synced: 6 months ago
JSON representation

Console tool for image resize

Awesome Lists containing this project

README

          

# resize-img

```
usage: main.py [-h] -f F [-o O] -s S [-n N]

Resize images

optional arguments:
-h, --help show this help message and exit
-f F Mask for input files
-o O Output folder
-s S Size for resizing, format WхH. Where W and H may be a number
(for hard resize), float number for percentage resize or "p" for
the proportional resize
-n N New name for files. Can contain formating. For example,
"image{n}.png" You can use:, n -- number, ext -- extension, on
-- old name of file, and other str.format() features
```
## Some examples
```
main.py -f "*.png" -o "imgs/ach/wow" -n "img{n}.{ext}" -s 96x96

main.py -f "*.png" -o "imgs/ach/wow" -n "img{n}.{ext}" -s 96x2.0

main.py -f "*.(png|gif|jpg)" -o "imgs/" -n "{n}_new.{ext}" -s 800xp
```