caesium-clt/README.md

58 lines
1.8 KiB
Markdown
Raw Normal View History

2024-12-27 20:50:45 +01:00
# Caesium Command Line Tools [![](https://img.shields.io/static/v1?label=Sponsor&message=%E2%9D%A4&logo=GitHub&color=%23fe8e86)](https://github.com/sponsors/Lymphatus)
2024-12-27 20:02:08 +01:00
[![Test](https://github.com/Lymphatus/caesium-clt/workflows/Test/badge.svg)](https://github.com/Lymphatus/caesium-clt/actions?query=workflow%3ATest)
2024-12-27 20:32:22 +01:00
[![Clippy](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yml/badge.svg)](https://github.com/Lymphatus/caesium-clt/actions/workflows/clippy.yml)
[![Code formatting](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yml/badge.svg)](https://github.com/Lymphatus/caesium-clt/actions/workflows/fmt.yml)
2024-12-27 20:02:08 +01:00
v1.0.0-beta.0
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
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
```