Update Changelog and Readme
This commit is contained in:
parent
f445537361
commit
e91fee0836
|
@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||
- option --no-run-if-empty added to xargs
|
||||
- scripts to compile optipng & libwebp from source
|
||||
- Avif (AV1 Image Format) support
|
||||
- Avoid optimizing the same image at the same moment [PR #12](https://github.com/VirtuBox/img-optimize/pull/12)
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
17
README.md
17
README.md
|
@ -81,18 +81,23 @@ Bash script to optimize your images and convert them in WebP
|
|||
Usage: img-optimize [options] <images path>
|
||||
If images path isn't defined, img-optimize will use the current directory
|
||||
Options:
|
||||
--jpg <images path> ..... optimize all jpg images
|
||||
--png <images path> ..... optimize all png images
|
||||
--webp <images path> ..... convert all images in webp
|
||||
--nowebp <images path> ..... optimize all png & jpg images
|
||||
--all <images path> ..... optimize all images (png + jpg + webp)
|
||||
--jpg ..... optimize all jpg images
|
||||
--png ..... optimize all png images
|
||||
--webp ..... convert all images in webp
|
||||
--avif ..... convert all images in avif
|
||||
--std ..... optimize all png & jpg images
|
||||
--next ..... convert all images in webp & avif
|
||||
--all ..... optimize all images (png + jpg + webp + avif)
|
||||
-i, --interactive ..... run img-optimize in interactive mode
|
||||
-q, --quiet ..... run image optimization quietly
|
||||
--path <images path> ..... define images path
|
||||
Other options :
|
||||
-h, --help, help ... displays this help information
|
||||
--cmin [+|-]<n> ... File's status was last changed n minutes ago.
|
||||
act find cmin argument (+n : greater than n, -n : less than n, n : exactly n)
|
||||
Examples:
|
||||
optimize all jpg images in /var/www/images
|
||||
img-optimize --jpg /var/www/images
|
||||
img-optimize --jpg --path /var/www/images
|
||||
```
|
||||
|
||||
### Update the script
|
||||
|
|
|
@ -2,13 +2,14 @@
|
|||
|
||||

|
||||
|
||||
[](https://travis-ci.org/VirtuBox/img-optimize)    
|
||||
[](https://travis-ci.org/VirtuBox/img-optimize)    
|
||||
|
||||
## Prerequisite
|
||||
|
||||
- jpegoptim for jpg optimization
|
||||
- optipng for png optimization
|
||||
- cwebp for WebP conversion
|
||||
- go-avif for Avif conversion
|
||||
|
||||
### From APT repositories
|
||||
|
||||
|
@ -36,6 +37,13 @@ curl -sL git.io/fjddn | sudo -E bash
|
|||
curl -sL git.io/fjdd6 | sudo -E bash
|
||||
```
|
||||
|
||||
### Go-Avif installation
|
||||
|
||||
```bash
|
||||
sudo wget -qO /usr/local/bin/avif https://github.com/Kagami/go-avif/releases/download/v0.1.0/avif-linux-x64
|
||||
sudo chmod +x /usr/local/bin/avif
|
||||
```
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
## Installation
|
||||
|
@ -73,21 +81,26 @@ Bash script to optimize your images and convert them in WebP
|
|||
Usage: img-optimize [options] <images path>
|
||||
If images path isn't defined, img-optimize will use the current directory
|
||||
Options:
|
||||
--jpg <images path> ..... optimize all jpg images
|
||||
--png <images path> ..... optimize all png images
|
||||
--webp <images path> ..... convert all images in webp
|
||||
--nowebp <images path> ..... optimize all png & jpg images
|
||||
--all <images path> ..... optimize all images (png + jpg + webp)
|
||||
--jpg ..... optimize all jpg images
|
||||
--png ..... optimize all png images
|
||||
--webp ..... convert all images in webp
|
||||
--avif ..... convert all images in avif
|
||||
--std ..... optimize all png & jpg images
|
||||
--next ..... convert all images in webp & avif
|
||||
--all ..... optimize all images (png + jpg + webp + avif)
|
||||
-i, --interactive ..... run img-optimize in interactive mode
|
||||
-q, --quiet ..... run image optimization quietly
|
||||
--path <images path> ..... define images path
|
||||
Other options :
|
||||
-h, --help, help ... displays this help information
|
||||
--cmin [+|-]<n> ... File's status was last changed n minutes ago.
|
||||
act find cmin argument (+n : greater than n, -n : less than n, n : exactly n)
|
||||
Examples:
|
||||
optimize all jpg images in /var/www/images
|
||||
img-optimize --jpg /var/www/images
|
||||
img-optimize --jpg --path /var/www/images
|
||||
```
|
||||
|
||||
## Update the script
|
||||
### Update the script
|
||||
|
||||
To update the script, just run :
|
||||
|
||||
|
@ -95,7 +108,7 @@ To update the script, just run :
|
|||
git -C $HOME/.img-optimize pull
|
||||
```
|
||||
|
||||
## Setup daily cronjob
|
||||
### Setup daily cronjob
|
||||
|
||||
You just have to copy the scripts to /etc/cron.daily :
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user