]> wimlib.net Git - wimlib/blob - doc/imagex-optimize.1.in
Update version to 1.2.6
[wimlib] / doc / imagex-optimize.1.in
1 .TH IMAGEX "1" "March 2013" "imagex (wimlib) wimlib @VERSION@" "User Commands"
2 .SH NAME
3 imagex-optimize \- Optimize a WIM archive
4
5 .SH SYNOPSIS
6 \fBimagex optimize\fR \fIWIMFILE\fR [--check] [--recompress]
7
8 .SH DESCRIPTION
9 .PP
10 \fBimagex optimize\fR will rebuild the stand-alone WIM \fIWIMFILE\fR.  The new
11 WIM is written to a temporary file, and it is renamed to the original file when
12 it's ready.  This action will remove any holes that have been left as a result
13 of appending images, so the new WIM may be slightly smaller than the old WIM.
14 In addition, some errors in the original WIM may be fixed by re-writing it
15 (although most cannot).
16
17 .SH OPTIONS
18 .TP 6
19 \fB--check\fR
20 When reading \fIWIMFILE\fR, verify its integrity if the integrity table is
21 present; in addition, include an integrity table in the optimized WIM.  If this
22 option is not specified, no integrity table is included in the optimized WIM,
23 even if there was one in the original WIM.
24 .TP 6
25 \fB--recompress\fR
26 Recompress all compressed streams in \fIWIMFILE\fR when rebuilding it.  This
27 will increase the time needed to rebuild the WIM, unless the WIM is
28 uncompressed, but it may result in a better compression ratio if wimlib can do a
29 better job than the program that wrote the original file.  A side effect of this
30 is that every stream in the original WIM will be checksummed, so this can help
31 verify that the WIM is intact (equivalent to applying all the images from it).
32
33 Note: as mentioned in the README, wimlib generally provides a slightly better
34 XPRESS compression ratio than Microsoft's software, while it generally provides
35 a slightly worse LZX compression ratio than Microsoft's software.  So, you may
36 not want to specify \fB--recompress\fR when optimizing a LZX-compressed WIM
37 created on Windows.
38
39 .SH NOTES
40
41 \fBimagex optimize\fR does not support split WIMs.
42
43 \fBimagex optimize\fR is roughly equivalent to:
44 .RS
45 .PP
46 \fBimagex export\fR \fIWIMFILE\fR all tmp.wim [--check] && mv tmp.wim \fIWIMFILE\fR
47 .RE
48 .PP
49
50 .SH SEE ALSO
51 .BR imagex (1)
52 .BR imagex-export (1)
53