2024-12-27 20:50:45 +01:00
|
|
|
# Caesium Command Line Tools [](https://github.com/sponsors/Lymphatus)
|
2015-05-13 10:48:30 +02:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
[](https://github.com/Lymphatus/caesium-clt/actions?query=workflow%3ATest)
|
2024-12-27 20:32:22 +01:00
|
|
|
[](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yml)
|
|
|
|
[](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yml)
|
2015-05-13 10:48:30 +02:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
v1.0.0-beta.0
|
2015-05-13 10:48:30 +02:00
|
|
|
|
2024-12-27 20:50:45 +01:00
|
|
|
## Development
|
2018-01-01 17:38:55 +01:00
|
|
|
|
2024-12-27 20:50:45 +01:00
|
|
|
### Requirements
|
2021-10-24 11:53:42 +02: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:50:45 +01:00
|
|
|
### Build
|
2024-12-17 20:20:52 +01:00
|
|
|
|
2024-12-27 20:02:08 +01:00
|
|
|
`cargo build --release`
|
2018-01-01 17:38:55 +01:00
|
|
|
|
2024-12-27 20:50:45 +01:00
|
|
|
## Usage
|
2015-05-13 10:48:30 +02: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:50:45 +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
|
|
|
```
|
2025-02-02 10:46:56 +01:00
|
|
|
$ caesiumclt --lossless -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
|
|
|
```
|
2025-02-02 10:46:56 +01:00
|
|
|
$ caesiumclt --lossless -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
|
|
|
```
|
2025-02-02 10:46:56 +01:00
|
|
|
$ caesiumclt --lossless -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
|
|
|
```
|
2025-02-02 10:46:56 +01:00
|
|
|
$ caesiumclt --lossless -RS -o ~/output/ ~/Pictures
|
2017-03-10 11:46:41 +01:00
|
|
|
```
|