caesium-clt/README.md

79 lines
3.3 KiB
Markdown
Raw Normal View History

2016-12-28 16:33:45 +01:00
## Caesium CommandLineTools
2024-08-10 18:12:19 +02:00
###### caesium-clt - v0.21.0
###### REQUIREMENTS
2022-12-20 13:38:05 +01:00
* [Rust](https://www.rust-lang.org/tools/install)
----------
2017-03-10 11:46:41 +01:00
###### COMPILATION
2022-12-20 13:38:05 +01:00
`cargo build --release`
2018-01-01 17:38:55 +01:00
----------
###### COMMAND LINE ARGUMENTS
2021-10-24 11:53:42 +02:00
2024-07-21 10:14:26 +02:00
```
USAGE:
2024-10-02 21:27:00 +02:00
caesiumclt.exe [FLAGS] [OPTIONS] --max-size <max-size> --output <output> --quality <quality> [FILE]...
2024-07-21 10:14:26 +02:00
FLAGS:
-d, --dry-run do not compress files but just show output paths
-e, --exif keeps EXIF info during compression
-h, --help Prints help information
--keep-dates keep original file date information
-S, --keep-structure keep the folder structure, can be used only with -R
-Q, --quiet suppress all output
-R, --recursive if input is a folder, scan subfolders too
-V, --version Prints version information
--zopfli use zopfli when optimizing PNG files (it may take a very long time to complete)
OPTIONS:
--height <height> height of the output image, if width is not set will preserve aspect ratio
2024-08-10 18:12:19 +02:00
--long-edge <long-edge> sets the size of the longest edge of the image
2024-08-07 20:44:20 +02:00
--max-size <max-size> set the expected maximum output size in bytes
2024-07-21 10:14:26 +02:00
-o, --output <output> output folder
--output-format <output-format> convert the image to the selected format (jpg, png, webp, tiff) [default:
none]
-O, --overwrite <overwrite> overwrite policy [default: all]
2024-10-02 21:27:00 +02:00
--png-opt-level <png-opt-level> select level for PNG optimization, between [0-6] [default: 3]
2024-07-21 10:14:26 +02:00
-q, --quality <quality> sets output file quality between [0-100], 0 for optimization
2024-08-10 18:12:19 +02:00
--short-edge <short-edge> sets the size of the shortest edge of the image
2024-07-21 10:14:26 +02:00
--threads <threads> specify the number of parallel jobs (max is the number of processors
available) [default: 0]
--verbose <verbose> select how much output you want to see, 0 is equal to -Q, --quiet [default:
1]
--width <width> width of the output image, if height is not set will preserve aspect ratio
ARGS:
<FILE>... Files to process
```
2018-01-01 17:38:55 +01:00
----------
2015-09-22 16:03:17 +02:00
###### USAGE EXAMPLES
2016-01-22 10:36:40 +01:00
Losslessly compress ```image1.jpg```, located in the ```home``` directory, into a folder called ```output```
2015-09-22 16:03:17 +02:00
```
2016-12-17 00:46:46 +01:00
$ caesiumclt -q 0 -o ~/output/ ~/image.jpg
2015-09-22 16:03:17 +02:00
```
2016-01-22 10:36:40 +01:00
Compress ```image1.jpg```, located in the ```home``` directory, into a folder called ```output``` with lossy compression and quality set to 80
2015-09-22 16:03:17 +02:00
```
$ caesiumclt -q 80 -o ~/output/ ~/image.jpg
```
2016-01-22 10:36:40 +01:00
Losslessly compress ```image1.jpg```, located in the ```home``` directory, into a folder called ```output``` and keeps EXIF metadata
2015-09-22 16:03:17 +02:00
```
2016-12-17 00:46:46 +01:00
$ caesiumclt -q 0 -e -o ~/output/ ~/image.jpg
2015-09-22 16:03:17 +02:00
```
Losslessly compress ```Pictures``` folder and subfolders, located in the ```home``` directory, into a folder called ```output```
```
2016-12-17 00:46:46 +01:00
$ caesiumclt -q 0 -R -o ~/output/ ~/Pictures
2015-09-22 16:03:17 +02:00
```
2017-03-10 11:46:41 +01:00
Losslessly compress ```Pictures``` folder and subfolders, located in the ```home``` directory, into a folder called ```output``` retaining the input folder structure
```
2017-03-13 10:13:03 +01:00
$ caesiumclt -q 0 -RS -o ~/output/ ~/Pictures
2017-03-10 11:46:41 +01:00
```