@@ -11,33 +11,45 @@ By design, Guetzling will overwrite and/or delete your original files. If you w
1111## Usage
12121 . Simply ` cd ` to the parent directory of your choice, and ` guetzling ` . *** Voilà!***
1313
14- ## Adjustable Options
15-
16- By opening the script in a text editor, you can adjust certain variables to change the output of Guetzling.
17-
18- ### JPG
19-
20- Enable/Disable re-compression of JPG and JPEG files using Guetzling.
21-
22- #Recompress JPG Images
23- #Set to false to disable
24- JPG=true
25-
26- ### PNG
27-
28- Enable/Disable the conversion of PNG to JPG using Guetzling.
29-
30- #Convert PNG Images
31- #Set to false to disable
32- #PNGS WILL BE DELETED AFTER CONVERSION
33- PNG=true
34-
35- ### QUALITY
36-
37- Change Guetzling/Guetzli Quality Level.
38-
39- #Set Quality level
40- #Default = 95
41- #Max = 100
42- #Min = 84
43- QUALITY=95
14+ ## Adjustable Parameters
15+
16+ By Default, Guetzling uses the following options:
17+
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
21+
22+ You can adjust these options using bash arguments:
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
31+
32+ 3 . Compress JPGs
33+ - Set to "false" and Guetzliing will ignore JPG/JPEG files, compressing only PNGS.
34+
35+ 4 . Compress PNGs
36+ - Set to "false" and Guetzling will ignore PNG files, compressing only JPGS
37+
38+ 5 . Delete PNG
39+ - Set to "false" and Guetzling will keep the copy of any original PNGs in your folder
40+
41+
42+ ## Example Usage
43+
44+ Replace all files at quality 95:
45+
46+ ./guetzling
47+
48+ Convert JPGs at 95, PNGs at 84, and keep your original PNG files:
49+
50+ ./guetzling 95 84 true true false
51+
52+ Convert only JPGs at Quality Level 97:
53+
54+ ./guetzling 97 95 true false
55+
0 commit comments