]> wimlib.net Git - wimlib/commitdiff
wimoptimize: make --recompress-slow imply --compress=maximum
authorEric Biggers <ebiggers3@gmail.com>
Sun, 8 Dec 2013 09:17:10 +0000 (03:17 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 8 Dec 2013 09:17:15 +0000 (03:17 -0600)
doc/imagex-optimize.1.in
programs/imagex.c

index 0009d92bc25ea3a3cfb891f08a1e206562447225..30edd4ad2072fee73de432ccd87ca052faeaf1b1 100644 (file)
@@ -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
index 2564b4c7ac1a0cc7a3f963a7aed2ca10142b5f7d..06ddeddd4060730ad083fcff690629d413583ffe 100644 (file)
@@ -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;