caesium-clt/README.md

85 lines
3.1 KiB
Markdown
Raw Normal View History

2016-12-28 16:33:45 +01:00
## Caesium CommandLineTools
2024-07-21 10:14:26 +02:00
###### caesium-clt - v0.20.0
###### REQUIREMENTS
2022-12-20 13:38:05 +01:00
* [Rust](https://www.rust-lang.org/tools/install)
----------
###### TESTED PLATFORMS
2024-07-21 10:14:26 +02:00
* macOS Ventura
2022-10-02 11:51:50 +02:00
* Ubuntu 22.04
2024-05-18 14:18:58 +02:00
* Windows 11
----------
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
2024-07-21 10:14:26 +02:00
CaesiumCLT - Command Line Tools for image compression
2021-10-24 11:53:42 +02:00
2024-07-21 10:14:26 +02:00
```
USAGE:
2024-07-29 18:22:25 +02:00
caesiumclt [FLAGS] [OPTIONS] --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
[default: 0]
-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]
-q, --quality <quality> sets output file quality between [0-100], 0 for optimization
--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
[default: 0]
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
```