You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Simple bash script for lossless image optimizing JPEG, PNG and GIF images in a s
6
6
- lossless image optimization with a small image size in the output;
7
7
- works recursively;
8
8
- checks optimization tools after the start;
9
-
- option for automatic install dependences and optimization tools if one or more of it is not found (see supported distributions [here](https://github.com/zevilz/zImageOptimizer#automatical-installing-dependences));
9
+
- option for automatic install dependencies and optimization tools if one or more of it is not found (see supported distributions [here](https://github.com/zevilz/zImageOptimizer#automatical-installing-dependencies));
10
10
- readable output info and total info after optimization;
11
11
- no limit for a file size (limited only by hardware);
12
12
- no limit for a number of files;
@@ -54,7 +54,7 @@ Supported options:
54
54
-`-p (--path)` - specify a full path to the input directory (usage: `-p <dir> | --path=<dir>`);
55
55
-`-q (--quiet)` - executes the script without any questions and users actions;
56
56
-`-l (--less)` - don't shows the optimizing process;
57
-
-`-c (--check-only)` - checks tools with an opportunity to install dependences;
57
+
-`-c (--check-only)` - checks tools with an opportunity to install dependencies;
58
58
-`-t (--time)` - sets the period for which to look for files by last modified time (usage: `-t <period> | --time=<period>`);
59
59
-`-n (--new-only)` - use the time marker file for looking new images only;
60
60
-`-m (--time-marker)` - sets the custom full path or the custom filename of a time marker file (usage: `-m <name|path> | --time-marker=<name|path>`);
@@ -72,7 +72,7 @@ Notices:
72
72
- it is impossible to use together `-t (--time)` and `-n (--new-only)` options;
73
73
- you must use `-m (--time-marker)` option with `-n (--new-only)` option;
74
74
- you must use `--unlock` option with `-p (--path)` option (just add `--unlock` option in next run);
75
-
- you can install dependences without any questions in check mode (`-c (--check-only)`) using `-q (--quiet)` option.
75
+
- you can install dependencies without any questions in check mode (`-c (--check-only)`) using `-q (--quiet)` option.
76
76
77
77
Recommendation: use [GNU Screen](https://en.wikipedia.org/wiki/GNU_Screen) or analogs if there are many images in an input directory, because the optimization may can take long time.
78
78
@@ -191,10 +191,10 @@ Or you can come up with your own CMD for example:
Notice: curent user must be root or user with sudo access.
196
196
197
-
Start the script in the optimization mode (`-p|--path`) or the checking tools mode (`-c|--check-only`, recommended) if you want to install dependences automatically. It will check installed tools and printing a choise option dialog if one or more tools not found. Select **Install dependences and exit** option by typing a appropriate number and press enter. The script will install dependences based on your platform, distribution and package manager. You may need to enter a password and confirm actions during installation dependences. Restart script to recheck installed tools after that.
197
+
Start the script in the optimization mode (`-p|--path`) or the checking tools mode (`-c|--check-only`, recommended) if you want to install dependencies automatically. It will check installed tools and printing a choise option dialog if one or more tools not found. Select **Install dependencies and exit** option by typing a appropriate number and press enter. The script will install dependencies based on your platform, distribution and package manager. You may need to enter a password and confirm actions during installation dependencies. Restart script to recheck installed tools after that.
198
198
199
199
Supported on:
200
200
- DEB-based linux distributions (i686/amd64)
@@ -238,9 +238,9 @@ Tested on:
238
238
- 10.13.6
239
239
- 11.2.1
240
240
241
-
If you have errors during installing dependences on supported platforms please contact me or open issue.
241
+
If you have errors during installing dependencies on supported platforms please contact me or open issue.
242
242
243
-
## Manual installing dependences
243
+
## Manual installing dependencies
244
244
Notice: curent user must be root or user with sudo access.
245
245
246
246
**Install following packages from repositories/ports**
@@ -380,7 +380,7 @@ bash zImageOptimizer.sh -p /path/to/files -ext all
380
380
381
381
## Troubleshooting
382
382
383
-
**I'm install dependences but one of tool is marked as NOT FOUND**
383
+
**I'm install dependencies but one of tool is marked as NOT FOUND**
384
384
385
385
By default the script looks for binary files into folowing directories `/bin``/usr/bin``/usr/local/bin`. If your binary file is not in these directories add your directory in variable `BINARY_PATHS` through a space like below and restart the script
386
386
```bash
@@ -401,8 +401,8 @@ The script is already running in specified directory. If not, previous run of th
401
401
-[ ] add an option for set quality for more small files in the output
402
402
-[x]~~add an option for check tools only~~
403
403
-[x]~~add support for optimize gif images~~
404
-
-[x]~~add support for automatic install dependences on other platforms and distributions with other package managers~~
405
-
-[ ] add support for automatic install dependences on others linux distributions
404
+
-[x]~~add support for automatic install dependencies on other platforms and distributions with other package managers~~
405
+
-[ ] add support for automatic install dependencies on others linux distributions
406
406
-[ ] add support for parallel optimization
407
407
-[ ] even more to improve results of compression
408
408
-[ ] add SVG support
@@ -429,7 +429,7 @@ Do you like the script? Would you like to support its development? Feel free to
- 09.03.2021 - 0.10.5 - added support for automatic install dependences on MacOS 11+
432
+
- 09.03.2021 - 0.10.5 - added support for automatic install dependencies on MacOS 11+
433
433
- 27.09.2020 - 0.10.4 - fixed permissions and modify time for optimized images
434
434
- 03.09.2020 - 0.10.3 - preserve permissions and modify time during backup/restore
435
435
- 03.09.2020 - 0.10.2 - added BACKUP var in main loop for extensions, refactoring
@@ -445,16 +445,16 @@ Do you like the script? Would you like to support its development? Feel free to
445
445
- 11.03.2018 - 0.9.3 - added a restoration of original files if their size is less or equal than optimized files size
446
446
- 27.02.2018 - 0.9.2 - fixed PNG file permissions if the script does not work from files owner
447
447
- 27.02.2018 - 0.9.1 - [added new features](https://github.com/zevilz/zImageOptimizer/releases/tag/0.9.1) and bugfixes
448
-
- 25.02.2018 - 0.9.0 - added support for working the script on MacOS 10.10+ with automatic install dependences
448
+
- 25.02.2018 - 0.9.0 - added support for working the script on MacOS 10.10+ with automatic install dependencies
449
449
- 24.02.2018 - 0.8.1 - [added new parameter, updated info after optimizing, small fixes and small code refactoring](https://github.com/zevilz/zImageOptimizer/releases/tag/0.8.1)
- 30.11.2017 - 0.7.0 - added support for working the script on FreeBSD with automatic install dependences, [bug fixes and more](https://github.com/zevilz/zImageOptimizer/releases/tag/0.7.0)
452
-
- 28.11.2017 - 0.6.0 - added support for automatic install dependences on RHEL 6+ and Fedora 24+
451
+
- 30.11.2017 - 0.7.0 - added support for working the script on FreeBSD with automatic install dependencies, [bug fixes and more](https://github.com/zevilz/zImageOptimizer/releases/tag/0.7.0)
452
+
- 28.11.2017 - 0.6.0 - added support for automatic install dependencies on RHEL 6+ and Fedora 24+
453
453
- 25.11.2017 - 0.5.0 - bug fixes and code refactoring
454
-
- 25.11.2017 - 0.4.0 - added support for automatic install dependences on Debian 7.* and some bugfixes
455
-
- 23.11.2017 - 0.3.0 - added support for automatic install dependences on CentOS 6.*
454
+
- 25.11.2017 - 0.4.0 - added support for automatic install dependencies on Debian 7.* and some bugfixes
455
+
- 23.11.2017 - 0.3.0 - added support for automatic install dependencies on CentOS 6.*
456
456
- 22.11.2017 - 0.2.3 - some bug fixes
457
-
- 21.11.2017 - 0.2.2 - added support for automatic install dependences on CentOS 7.*
457
+
- 21.11.2017 - 0.2.2 - added support for automatic install dependencies on CentOS 7.*
0 commit comments