From 84aa21bf2722d14eff30fac2ec4904ed2ed6de52 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sun, 8 Dec 2013 03:17:10 -0600 Subject: [PATCH 1/1] wimoptimize: make --recompress-slow imply --compress=maximum --- doc/imagex-optimize.1.in | 7 ++++--- programs/imagex.c | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) 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; -- 2.43.0