Skip to content

Commit

Permalink
Merge pull request #134 from Mikachu2333/main
Browse files Browse the repository at this point in the history
update README and main.rs for jxl warning and reformat each
  • Loading branch information
SalOne22 committed Oct 17, 2023
2 parents 0c24815 + 869b37d commit 49b0fec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ cargo install rimage

## Note

1. On x86_64-pc-windows-msvc build jxl feature disabled, because of libjxl inability for build on msvc target.
1. Jxl(JpegXL) format on Microsoft Windows® is not support, because of its complexity.

2. If you met the error of "Could not find libstdc++-6.dll", please **download all 3 DLLs from [HERE](https://github.com/Mikachu2333/rimage_gui/releases/tag/0.0.0.0) and put these 3 DLLs near Rimage**.
2. If you met the error of **"Could not find libstdc++-6.dll", etc.**, please download all 3 DLLs from **[HERE](https://github.com/Mikachu2333/rimage_gui/releases/tag/0.0.0.0)** and put these 3 DLLs near Rimage.

3. If you're a user who just want to use Rimage easily with GUI, [Rimage_gui](https://github.com/Mikachu2333/rimage_gui/releases/) may be fit for you. Just select the version you need and download it to use.
3. If you're a user who just want to **use Rimage easily with a friendly GUI**, [Rimage_gui](https://github.com/Mikachu2333/rimage_gui/releases/) may be fit for you, it support both Chinese and English. Just select the version you need and download it to use.

## Usage

Expand All @@ -55,7 +55,7 @@ Options:
General:
-q, --quality <QUALITY> Optimization image quality
[range: 1 - 100] [default: 75]
-f, --codec <CODEC> Image codec to use
-f, --codec <CODEC> Image codec to use, jxl feature is disabled on Microsoft Windows®
[default: jpg] [possible values: png, oxipng, jpegxl, webp, avif]
-o, --output <DIR> Write output file(s) to <DIR>, if "-r" option is not used
-r, --recursive Saves output file(s) preserving folder structure
Expand Down
4 changes: 2 additions & 2 deletions src/bin/rimage/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn main() -> Result<(), Box<dyn Error>> {
arg!(-q --quality <QUALITY> "Optimization image quality\n[range: 1 - 100]")
.value_parser(value_parser!(f32))
.default_value("75"),
arg!(-f --codec <CODEC> "Image codec to use\n[possible values: png, oxipng, jpegxl, webp, avif]")
arg!(-f --codec <CODEC> "Image codec to use, jxl feature is disabled on Microsoft Windows®\n[possible values: png, oxipng, jpegxl, webp, avif]")
.value_parser(Codec::from_str)
.default_value("mozjpeg"),
arg!(-o --output <DIR> "Write output file(s) to <DIR>, if \"-r\" option is not used")
Expand All @@ -35,7 +35,7 @@ fn main() -> Result<(), Box<dyn Error>> {
arg!(-b --backup "Appends \".backup\" suffix to input file(s) extension")
.action(ArgAction::SetTrue),
#[cfg(feature = "parallel")]
arg!(-t --threads <NUM> "Number of threads to use\n[default: number of cores]")
arg!(-t --threads <NUM> "Number of threads to use\n[range: 1 - 16] [default: number of cores]")
.value_parser(value_parser!(usize)),
])
.next_help_heading("Quantization")
Expand Down

0 comments on commit 49b0fec

Please sign in to comment.