@@ -25,8 +25,9 @@ pip install rayim
25
25
## ⌨️ Usage
26
26
27
27
```
28
- usage: rayim [-h] [-o OUTPUT_DIR] [-q QUALITY] [--overwrite] [-N] [-j] [-s]
29
- path [path ...]
28
+ usage: rayim [-h] [-o OUTPUT_DIR] [-q QUALITY] [--overwrite] [-n] [-j]
29
+ [--replicate-dir-tree] [-s SIZE SIZE] [-d DIV_BY] [-S] [-O]
30
+ path [path ...]
30
31
31
32
positional arguments:
32
33
path Path to a single file/directory or multiple
@@ -39,10 +40,16 @@ optional arguments:
39
40
-q QUALITY, --quality QUALITY
40
41
Output image quality (JPEG only; default: 70)
41
42
--overwrite Overwrite the original image
42
- -N , --no-subsampling Turn off subsampling and retain the original image
43
+ -n , --no-subsampling Turn off subsampling and retain the original image
43
44
setting (JPEG only)
44
45
-j, --to-jpeg Convert the image(s) to .JPEG
45
- -s, --silent Silent mode
46
+ --replicate-dir-tree Replicate the source directory tree in the output
47
+ -s SIZE SIZE, --size SIZE SIZE
48
+ Resize the image to WIDTH HEIGHT
49
+ -d DIV_BY, --div-by DIV_BY
50
+ Divide the image size (WxH) by a factor of n
51
+ -S, --silent Silent mode
52
+ -O, --optimize Apply default optimization on the image(s)
46
53
```
47
54
48
55
## 📕 Examples
0 commit comments