rimage 0.12.3

Optimize images natively with best-in-class codecs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use clap::{Command, arg, value_parser};

use crate::cli::common::CommonArgs;

pub fn jpeg() -> Command {
    Command::new("jpeg")
        .alias("jpg")
        .about("Encode images into JPEG format. (Progressive-able)")
        .args([
            arg!(-q --quality <NUM> "Quality which the image will be encoded with.")
                .value_parser(value_parser!(u8).range(1..=100)),
            arg!(--progressive "Set to use progressive encoding."),
        ])
        .common_args()
}