2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
\r
6 <meta http-equiv="Content-Type" value="application/xhtml+xml" />
\r
7 <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
\r
8 <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
\r
9 <style type="text/css" media="screen,projection"><!--
\r
10 @import url("../www/magick.css");
\r
12 <link rel="shortcut icon" href="../images/wand.ico" type="images/vnd.microsoft.icon"/>
13 <title>ImageMagick: JP2 Encoding Options</title>
14 <meta http-equiv="Content-Language" content="en-US"/>
15 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
16 <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
17 <meta name="Generator" content="PHP"/>
18 <meta name="Keywords" content="jp2, encoding, options, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject, Swiss, Army, Knife, Image, Processing"/>
19 <meta name="Description" content="ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including GIF, JPEG, JPEG-2000, PNG, PDF, PhotoCD, TIFF, and DPX. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you can freely use, copy, modify, and distribute. Its license is compatible with the GPL. It runs on all major operating systems. The functionality of ImageMagick is typically utilized from the command line or you can use the features from programs written in your favorite programming language. Choose from these interfaces: MagickCore (C), MagickWand (C), ChMagick (Ch), Magick++ (C++), JMagick (Java), L-Magick (Lisp), PascalMagick (Pascal), PerlMagick (Perl), MagickWand for PHP (PHP), PythonMagick (Python), RMagick (Ruby), or TclMagick (Tcl/TK). With a language interface, use ImageMagick to modify or create images automagically and dynamically."/>
20 <meta name="Rating" content="GENERAL"/>
21 <meta name="Robots" content="INDEX, FOLLOW"/>
22 <meta name="Generator" content="ImageMagick Studio LLC"/>
23 <meta name="Author" content="ImageMagick Studio LLC"/>
24 <meta name="Revisit-after" content="2 DAYS"/>
25 <meta name="Resource-type" content="document"/>
26 <meta name="Copyright" content="Copyright (c) 1999-2010 ImageMagick Studio LLC"/>
27 <meta name="Distribution" content="Global"/>
30 <body id="www-imagemagick-org">
\r
31 <div class="titlebar">
\r
32 <a href="../index.html">
\r
33 <img src="../images/script.png" alt="[ImageMagick]"
\r
34 style="width: 350px; height: 60px; margin: 28px auto; float: left;" /></a>
\r
35 <a href="http://www.networkredux.com">
\r
36 <img src="../images/networkredux.png" alt="[sponsor]"
\r
37 style="margin: 45px auto; border: 0px; float: left;" /></a>
\r
38 <a href="http://www.imagemagick.org/discourse-server/">
\r
39 <img src="../images/logo.jpg" alt=""
\r
40 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
41 <a href="../index.html">
\r
42 <img src="../images/sprite.jpg" alt=""
\r
43 style="width: 114px; height: 118px; border: 0px; float: right;" /></a>
\r
46 <div class="eastbar">
\r
49 <a href="../index.html">About ImageMagick</a>
51 <div class="sep"></div>
\r
53 <a href="../www/command-line-tools.html">Command-line Tools</a>
56 <a href="../www/command-line-processing.html">Processing</a>
59 <a href="../www/command-line-options.html">Options</a>
62 <a href="http://www.imagemagick.org/Usage/">Usage</a>
65 <a href="../www/api.html">Program Interfaces</a>
68 <a href="../www/magick-wand.html">MagickWand</a>
71 <a href="../www/magick-core.html">MagickCore</a>
74 <a href="../www/perl-magick.html">PerlMagick</a>
77 <a href="../Magick++/">Magick++</a>
80 <a href="../www/architecture.html">Architecture</a>
82 <div class="sep"></div>
\r
84 <a href="../www/install-source.html">Install from Source</a>
87 <a href="../www/install-source.html#unix">Unix</a>
90 <a href="../www/install-source.html#windows">Windows</a>
93 <a href="../www/binary-releases.html">Binary Releases</a>
96 <a href="../www/binary-releases.html#unix">Unix</a>
99 <a href="../www/binary-releases.html#macosx">Mac OS X</a>
102 <a href="../www/binary-releases.html#windows">Windows</a>
105 <a href="../www/resources.html">Resources</a>
107 <div class="sep"></div>
\r
109 <a href="../www/download.html">Download</a>
111 <div class="sep"></div>
\r
113 <a href="http://www.imagemagick.org/script/search.php">Search</a>
115 <div class="sep"></div>
\r
117 <a href="../www/sitemap.html">Site Map</a>
120 <a href="../www/links.html">Links</a>
122 <div class="sep"></div>
\r
124 <a href="../www/sponsors.html">Sponsors:</a>
126 <div class="sponsbox">
127 <div class="sponsor">
128 <a href="http://www.abi-stoff.de/abizeitung/" title="Abibuch">Abizeitung</a><!-- 20101101000200 -->
130 <div class="sponsor">
131 <a href="http://www.tomsgutscheine.de">Tom's Gutscheine</a><!-- 201005010360 invendio.de-->
133 <div class="sponsor">
134 <a href="http://www.online-kredit-index.de">Kredit</a><!-- 201007010120 Buchhorn -->
136 <div class="sponsor">
137 <a href="http://www.blumenversender.com">Blumenversand</a><!-- 201005010120 -->
139 <div class="sponsor">
140 <a href="http://www.print24.de/">Druckerei</a><!-- 201009010720 -->
142 <div class="sponsor">
143 <a href="http://www.goyax.de">Börse</a><!-- 201004010240 Gewiese digital-finance.de -->
145 <div class="sponsor">
146 <a href="http://www.allesdruck.de">Druckerei Online</a><!-- 201012011200 allesdruck.de-->
148 <div class="sponsor">
149 <a href="http://www.who-sells-it.com/">Free Catalogs</a><!-- 201002010000 -->
159 <p class="navigation-index"></p>
161 <p>ImageMagick's JPEG-2000 image formats, JP2 and JPC, accept a plethora of encoding options as detailed below. As an example, suppose you are interested in these options:</p>
164 <li>code blocks are 64 samples in width and 32 samples in height</li>
165 <li>no multicomponent transform</li>
166 <li>4 resolution levels for each component</li>
167 <li>compression is lossy at 64:1</li>
170 <p>Use this command:</p>
172 <p class='crt'><span class="crtprompt"> $magick> </span><span class='crtin'>convert wizard.png -define jp2:cblkwidth=64 -define jp2:cblkheight=32 \ <br/>
173 -define jp2:nomct -define jp2:numrlvls=4 -define jp2:rate=0.015625 wizard.jpc</span></p>
174 <p>Here is a complete list of JPEG-2000 encoding options:</p>
177 <dt class="doc">imgareatlx=x</dt>
178 <dd>Set the x-coordinate of the top-left corner of the image area to x.</dd>
179 <dt class="doc">imgareatly=y</dt>
180 <dd>Set the y-coordinate of the top-left corner of the image area to y.</dd>
181 <dt class="doc">tilegrdtlx=x</dt>
182 <dd>Set the x-coordinate of the top-left corner of the tiling grid to x.</dd>
183 <dt class="doc">tilegrdtly=y</dt>
184 <dd>Set the y-coordinate of the top-left corner of the tiling grid to y.</dd>
185 <dt class="doc">tilewidth=w</dt>
186 <dd>Set the nominal tile width to w.</dd>
187 <dt class="doc">tileheight=h</dt>
188 <dd>Set the nominal tile height to h.</dd>
189 <dt class="doc">prcwidth=w</dt>
190 <dd>Set the precinct width to w. The argument w must be an integer power of two. The default value is 32768.</dd>
191 <dt class="doc">prcheight=h</dt>
192 <dd>Set the precinct height to h. The argument h must be an integer power of two. The default value is 32768.</dd>
193 <dt class="doc">cblkwidth=w</dt>
194 <dd>Set the nominal code block width to w. The argument w must be an integer power of two. The default value is 64.</dd>
195 <dt class="doc">cblkheight=h</dt>
196 <dd>Set the nominal code block height to h. The argument h must be an integer power of two. The default value is 64.</dd>
197 <dt class="doc">mode=m</dt>
198 <dd>Set the coding mode to m. The argument m must have one of the following values:
203 <th align="left">Value</th>
204 <th align="left">Description</th>
207 <tr> <td>int</td> <td>integer mode</td> </tr>
208 <tr> <td>real</td> <td>real mode</td> </tr>
213 <dd>If lossless coding is desired, the integer mode must be used. By default, the integer mode is employed. The choice of mode also determines which multicomponent and wavelet transforms (if any) are employed.</dd>
214 <dt class="doc">rate=r</dt>
215 <dd>Specify the target rate. The argument r is a positive real number. Since a rate of one corresponds to no compression, one should never need to explicitly specify a rate greater than one. By default, the target rate is considered to be infinite.</dd>
216 <dt class="doc">ilyrrates=r0[,r1,. . . ,rN]</dt>
217 <dd>Specify the rates for any intermediate layers. The argument to this option is a comma separated list of N rates. Each rate is a positive real number. The rates must increase monotonically. The last rate in the list should be less than or equal to the overall rate (as specified with the rate option).</dd>
218 <dt class="doc">prg=p</dt>
219 <dd>Set the progression order to p. The argument p must have one of the following values:
224 <th align="left">Value</th>
225 <th align="left">Description</th>
228 <tr> <td>lrcp</td> <td>layer-resolution-component-position (LRCP) progressive (i.e., rate scalable)</td> </tr>
229 <tr> <td>rlcp</td> <td>resolution-layer-component-position (RLCP) progressive (i.e., resolution scalable)</td> </tr>
230 <tr> <td>rpcl</td> <td>resolution-position-component-layer (RPCL) progressive</td> </tr>
231 <tr> <td>pcrl</td> <td>position-component-resolution-layer (PCRL) progressive</td> </tr>
232 <tr> <td>cprl</td> <td>component-position-resolution-layer (CPRL) progressive</td> </tr>
237 <dd>By default, LRCP progressive ordering is employed. Note that the RPCL and PCRL progressions are not valid for all possible image geometries.</dd>
238 <dt class="doc">nomct</dt>
239 <dd>Disallow the use of any multicomponent transform.</dd>
240 <dt class="doc">numrlvls=n</dt>
241 <dd>Set the number of resolution levels to n. The argument n must be an integer that is greater than or equal to one. The default value is 6.</dd>
242 <dt class="doc">sop</dt>
243 <dd>Generate SOP marker segments.</dd>
244 <dt class="doc">eph</dt>
245 <dd>Generate EPH marker segments.</dd>
246 <dt class="doc">lazy</dt>
247 <dd>Enable lazy coding mode (a.k.a. arithmetic coding bypass).</dd>
248 <dt class="doc">termall</dt>
249 <dd>Terminate all coding passes.</dd>
250 <dt class="doc">segsym</dt>
251 <dd>Use segmentation symbols.</dd>
252 <dt class="doc">vcausal</dt>
253 <dd>Use vertically stripe causal contexts.</dd>
254 <dt class="doc">pterm</dt>
255 <dd>Use predictable termination.</dd>
256 <dt class="doc">resetprob</dt>
257 <dd>Reset the probability models after each coding pass.</dd>
258 <dt class="doc">numgbits=n</dt>
259 <dd>Set the number of guard bits to n.</dd>
265 <!-- <span id="linkbar-west"> </span> -->
\r
266 <span id="linkbar-center">
\r
267 <a href="http://www.imagemagick.org/discourse-server/">Discourse Server</a> •
\r
268 <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Studio</a>
\r
270 <span id="linkbar-east"> </span>
\r
272 <div class="footer">
\r
273 <span id="footer-west">© 1999-2010 ImageMagick Studio LLC</span>
\r
274 <span id="footer-east"> <a href="http://www.imagemagick.org/script/contact.php">Contact the Wizards</a></span>
\r
276 <div style="clear: both; margin: 0; width: 100%; "></div>
\r