@@ -6,7 +6,7 @@ By design, Guetzling will overwrite and/or delete your original files. If you w
6
6
7
7
## Install Guetzli
8
8
1 . Install [ Guetzli] ( https://github.com/google/guetzli ) , via the directions provided at the link.
9
- 2 . Copy Guetzling, copy it to ` /usr/bin ` .
9
+ 2 . Copy Guetzling to ` /usr/bin ` .
10
10
11
11
## Usage
12
12
1 . Simply ` cd ` to the parent directory of your choice, and ` guetzling ` . *** Voilà!***
@@ -16,40 +16,36 @@ By design, Guetzling will overwrite and/or delete your original files. If you w
16
16
By Default, Guetzling uses the following options:
17
17
18
18
- JPGs are re-compressed and overwritten
19
- - PNGs are converted to JPG and the originals are deleted
20
- - Quality Level is for Guetzli is set to 95
19
+ - PNGs are converted to JPG, re-compressed, and the originals are deleted
20
+ - Quality Level is set to 95
21
21
22
- You can adjust these options using bash arguments :
22
+ You can adjust these options using flags :
23
23
24
- 1 . Quality for JPG re-compression.
25
- - Requires a value between 84 and 100 for Guetzli is designed to fail
26
- - Default value is the same as Guetzli: 95
27
-
28
- 2 . Quality for PNG conversion.
29
- - Requires a value between 84 and 100 for Guetzli is designed to fail
30
- - Default value is the same as Guetzli: 95
24
+ -q Quality for JPG or PNG re-compression.
25
+ - Requires a value between 84 and 100.
26
+ - Default value is the same as Guetzli: 95.
31
27
32
- 3 . Compress JPGs
33
- - Set to "false" and Guetzliing will ignore JPG/JPEG files, compressing only PNGS .
28
+ -j Compress JPGs ONLY
29
+ - Use this flag and Guetzling will ignore PNGs files, compressing only JPGs .
34
30
35
- 4 . Compress PNGs
36
- - Set to "false" and Guetzling will ignore PNG files, compressing only JPGS
31
+ -p Compress PNGs ONLY
32
+ - Use this flag and Guetzling will ignore JPGs files, compressing only PNGs.
37
33
38
- 5 . Delete PNG
39
- - Set to "false" and Guetzling will keep the copy of any original PNGs in your folder
34
+ -k Keep PNG
35
+ - Use this flag and Guetzling will keep original PNGs files, and output compressed JPGs.
40
36
41
37
42
38
## Example Usage
43
39
44
- Replace all files at quality 95:
40
+ Replace all files at quality 95 :
45
41
46
42
./guetzling
47
43
48
- Convert JPGs at 95, PNGs at 84, and keep your original PNG files:
44
+ Convert PNGs at 84, and keep your original PNG files :
49
45
50
- ./guetzling 95 84 true true false
46
+ ./guetzling -q 84 -p -k
51
47
52
- Convert only JPGs at Quality Level 97 :
48
+ Convert only JPGs at Quality 97 in /Users/test/photos/output :
53
49
54
- ./guetzling 97 95 true false
50
+ ./guetzling -q 97 -j -f /Users/test/photos/output
55
51
0 commit comments