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
- Host: GitHub
- URL: https://github.com/olegwock/resize-img
- Owner: OlegWock
- License: mit
- Created: 2016-07-22T17:33:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-22T22:13:57.000Z (about 9 years ago)
- Last Synced: 2025-02-24T01:40:09.552Z (8 months ago)
- Language: Python
- Size: 6.84 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 96x96main.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
```