Doc update
This commit is contained in:
parent
2264032e47
commit
236de28cb7
|
@ -1,4 +1,5 @@
|
||||||
## CHANGELOG
|
## CHANGELOG
|
||||||
|
* 0.22.0 - Same folder as input, suffix options + lossless flag
|
||||||
* 0.21.0 - Compress by quality and long/short edge resize options
|
* 0.21.0 - Compress by quality and long/short edge resize options
|
||||||
* 0.20.0 - Keep original dates and format conversion
|
* 0.20.0 - Keep original dates and format conversion
|
||||||
* 0.19.0 - Rust migration
|
* 0.19.0 - Rust migration
|
||||||
|
|
23
README.md
23
README.md
|
@ -14,19 +14,20 @@
|
||||||
|
|
||||||
```
|
```
|
||||||
USAGE:
|
USAGE:
|
||||||
caesiumclt.exe [FLAGS] [OPTIONS] --max-size <max-size> --output <output> --quality <quality> [FILE]...
|
caesiumclt.exe [FLAGS] [OPTIONS] --quality <quality> [FILE]...
|
||||||
|
|
||||||
FLAGS:
|
FLAGS:
|
||||||
-d, --dry-run do not compress files but just show output paths
|
-d, --dry-run do not compress files but just show output paths
|
||||||
-e, --exif keeps EXIF info during compression
|
-e, --exif keeps EXIF info during compression
|
||||||
-h, --help Prints help information
|
-h, --help Prints help information
|
||||||
--keep-dates keep original file date information
|
--keep-dates keep original file date information
|
||||||
-S, --keep-structure keep the folder structure, can be used only with -R
|
-S, --keep-structure keep the folder structure, can be used only with -R
|
||||||
-Q, --quiet suppress all output
|
-l, --lossless perform lossless compression
|
||||||
-R, --recursive if input is a folder, scan subfolders too
|
-Q, --quiet suppress all output
|
||||||
|
-R, --recursive if input is a folder, scan subfolders too
|
||||||
--same-folder-as-input sets the output folder to be the same as the input folder. Overwrites original files
|
--same-folder-as-input sets the output folder to be the same as the input folder. Overwrites original files
|
||||||
-V, --version Prints version information
|
-V, --version Prints version information
|
||||||
--zopfli use zopfli when optimizing PNG files (it may take a very long time to complete)
|
--zopfli use zopfli when optimizing PNG files (it may take a very long time to complete)
|
||||||
|
|
||||||
OPTIONS:
|
OPTIONS:
|
||||||
--height <height> height of the output image, if width is not set will preserve aspect ratio
|
--height <height> height of the output image, if width is not set will preserve aspect ratio
|
||||||
|
@ -39,6 +40,8 @@ OPTIONS:
|
||||||
--png-opt-level <png-opt-level> select level for PNG optimization, between [0-6] [default: 3]
|
--png-opt-level <png-opt-level> select level for PNG optimization, between [0-6] [default: 3]
|
||||||
-q, --quality <quality> sets output file quality between [0-100], 0 for optimization
|
-q, --quality <quality> sets output file quality between [0-100], 0 for optimization
|
||||||
--short-edge <short-edge> sets the size of the shortest edge of the image
|
--short-edge <short-edge> sets the size of the shortest edge of the image
|
||||||
|
--suffix <suffix> convert the image to the selected format (jpg, png, webp, tiff) [default:
|
||||||
|
none]
|
||||||
--threads <threads> specify the number of parallel jobs (max is the number of processors
|
--threads <threads> specify the number of parallel jobs (max is the number of processors
|
||||||
available) [default: 0]
|
available) [default: 0]
|
||||||
--verbose <verbose> select how much output you want to see, 0 is equal to -Q, --quiet [default:
|
--verbose <verbose> select how much output you want to see, 0 is equal to -Q, --quiet [default:
|
||||||
|
|
|
@ -102,7 +102,7 @@ pub struct Opt {
|
||||||
#[structopt(long = "same-folder-as-input", conflicts_with = "output")]
|
#[structopt(long = "same-folder-as-input", conflicts_with = "output")]
|
||||||
pub same_folder_as_input: bool,
|
pub same_folder_as_input: bool,
|
||||||
|
|
||||||
/// convert the image to the selected format (jpg, png, webp, tiff)
|
/// add a suffix to the output filename
|
||||||
#[structopt(long = "suffix", default_value = "none")]
|
#[structopt(long = "suffix", default_value = "none")]
|
||||||
pub suffix: String,
|
pub suffix: String,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue