From: Eric Biggers Date: Sun, 8 Dec 2013 09:17:10 +0000 (-0600) Subject: wimoptimize: make --recompress-slow imply --compress=maximum X-Git-Tag: v1.5.3~1 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=84aa21bf2722d14eff30fac2ec4904ed2ed6de52;hp=e0d3f9cd10e8517f5b9a46acdb7c7f715cffa6d9 wimoptimize: make --recompress-slow imply --compress=maximum --- diff --git a/doc/imagex-optimize.1.in b/doc/imagex-optimize.1.in index 0009d92b..30edd4ad 100644 --- a/doc/imagex-optimize.1.in +++ b/doc/imagex-optimize.1.in @@ -38,9 +38,10 @@ better compression than Microsoft's, but is slightly slower. .TP \fB--recompress-slow\fR, \fB--compress-slow\fR Spend even more time compressing the data in order to achieve a more optimal -compression ratio. This only affects LZX-compressed WIM files. Compared to the -default \fB--recompress\fR, this will make compression about twice as slow and -will increase the compression ratio by maybe 1%, depending on the data. +compression ratio. Compared to the default \fB--recompress\fR, this will make +compression about twice as slow and will increase the compression ratio by maybe +1%, depending on the data. This option implies \fB--recompress\fR and +\fB--compress\fR="maximum" (recompress using LZX compression). .TP \fB--compress\fR=\fITYPE\fR Recompress the WIM file using the specified compression type. \fITYPE\fR may be diff --git a/programs/imagex.c b/programs/imagex.c index 2564b4c7..06ddeddd 100644 --- a/programs/imagex.c +++ b/programs/imagex.c @@ -3275,6 +3275,7 @@ imagex_optimize(int argc, tchar **argv, int cmd) break; case IMAGEX_COMPRESS_SLOW_OPTION: write_flags |= WIMLIB_WRITE_FLAG_RECOMPRESS; + compression_type = WIMLIB_COMPRESSION_TYPE_LZX; ret = set_compress_slow(); if (ret) goto out_err;