2024-12-27 20:02:08 +01:00
|
|
|
## Caesium Command Line Tools
|
2015-05-13 10:48:30 +02:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
[](https://github.com/sponsors/Lymphatus)
|
|
|
|
[](https://github.com/Lymphatus/caesium-clt/actions?query=workflow%3ATest)
|
|
|
|
[](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yaml)
|
|
|
|
[](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yaml)
|
2015-05-13 10:48:30 +02:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
v1.0.0-beta.0
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
### Development
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
#### Requirements
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
* [Rust](https://www.rust-lang.org/tools/install) >= 1.79.0
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
#### Build
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
`cargo build --release`
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
### Usage
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
See full usage docs [here](docs/USAGE.md).
|
2018-01-01 17:38:55 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
#### Examples
|
2016-01-22 10:36:40 +01:00
|
|
|
|
|
|
|
Losslessly compress ```image1.jpg```, located in the ```home``` directory, into a folder called ```output```
|
2024-12-27 20:02:08 +01:00
|
|
|
|
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
|
|
|
```
|
|
|
|
|
2024-12-27 20:02:08 +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
|
|
|
|
```
|
|
|
|
|
2024-12-27 20:02:08 +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
|
|
|
```
|
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
Losslessly compress ```Pictures``` folder and subfolders, 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 -R -o ~/output/ ~/Pictures
|
2015-09-22 16:03:17 +02:00
|
|
|
```
|
|
|
|
|
2024-12-27 20:02:08 +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-10 11:46:41 +01:00
|
|
|
```
|
2017-03-13 10:13:03 +01:00
|
|
|
$ caesiumclt -q 0 -RS -o ~/output/ ~/Pictures
|
2017-03-10 11:46:41 +01:00
|
|
|
```
|