root / ImageMagick / trunk / www / jp2.html

Revision 12206, 12.1 kB (checked in by cristy, 3 days ago)
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
4<head>
5  <style type="text/css" media="screen,projection"><!--
6    @import url("../www/magick.css");
7  //--></style>
8  <meta name="verify-v1" content="g222frIIxcQTrvDR3NBRUSKP3AnMNoqxOkIniCEkV7U=" />
9  <link rel="meta" type="application/rdf+xml" title="ICI" href="http://imagemagick.org/ici.rdf" />
10  <title>ImageMagick: JP2 Encoding Options</title>
11  <meta http-equiv="Content-Language" content="en-US"/>
12  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
13  <meta http-equiv="Reply-to" content="magick-users@imagemagick.org"/>
14  <meta name="Generator" content="PHP"/>
15  <meta name="Keywords" content="jp2, encoding, options, ImageMagick, ImageMagic, MagickCore, MagickWand, PerlMagick, Magick++, RMagick, PythonMagick, JMagick, TclMagick, Image, Magick, Magic, Wand, ImageMagickObject"/>
16  <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."/>
17  <meta name="Rating" content="GENERAL"/>
18  <meta name="Robots" content="INDEX, FOLLOW"/>
19  <meta name="Generator" content="ImageMagick Studio LLC"/>
20  <meta name="Author" content="ImageMagick Studio LLC"/>
21  <meta name="Revisit-after" content="2 DAYS"/>
22  <meta name="Resource-type" content="document"/>
23  <meta name="Copyright" content="Copyright (c) 1999-2008 ImageMagick Studio LLC"/>
24  <meta name="Distribution" content="Global"/>
25  <link rel="shortcut icon" href="../images/wand.ico"  type="images/vnd.microsoft.icon"/>
26</head>
27
28<body id="www-imagemagick-org">
29  <table id="titlebar" style="width: 100%;background-color: #f5f5f5" cellpadding="0" cellspacing="0" border="0" summary="ImageMagick">
30    <tbody>
31      <tr valign="top">
32        <td align="left"><a href="../index.html"><img id="titlebar-west" src="../images/script.png" alt="[ImageMagick]" width="350" height="60" vspace="28" name="titlebar-west"/></a></td>
33        <td align="left"><a href="https://secure.networkredux.com/affiliate/idevaffiliate.html?id=146" target="935198347"><img id="titlebar-west" src="../images/networkredux.png" alt="[sponsor]" border="0" vspace="45" name="titlebar-west"/></a></td>
34        <td width="99%"><br /> </td>
35        <td style="background-color: white" align="right"><a href="../index.html"><img src="../images/sprite.jpg" alt="" width="114" height="118" border="0" name="titlebar-east"/></a></td>
36        <td style="background-color: white" align="right"><a href="http://www.imagemagick.org/discourse-server/" target="1155072234"><img id="titlebar-east" src="../images/logo.jpg" alt="" width="114" height="118" border="0" name="titlebar-east"/></a></td>
37      </tr>
38    </tbody>
39  </table>
40
41  <table style="width: 100%" border="0" cellpadding="0" cellspacing="0" summary="">
42  <tbody>
43
44    <tr valign="top" style="height: 100%;">
45      <td id="menu" width="1%" height="100%">
46      <p><a href="#main">Skip to page contents</a></p>
47      <font size="-1">
48      <span>[</span>
49      <a href="../index.html">About ImageMagick</a>
50  <span>]</span><br /><span>[</span>
51      <a href="../www/command-line-tools.html">Command-line Tools</a>
52      <a href="../www/command-line-processing.html" class="sub">Processing</a>
53      <a href="../www/command-line-options.html" class="sub">Options</a>
54      <a href="http://www.imagemagick.org/Usage/" target="989949652" class="sub">Usage</a>
55      <a href="../www/api.html">Program Interfaces</a>
56      <a href="../www/magick-wand.html" class="sub">MagickWand</a>
57      <a href="../www/magick-core.html" class="sub">MagickCore</a>
58      <a href="../www/perl-magick.html" class="sub">PerlMagick</a>
59      <a href="../www/Magick++/" target="1745571292" class="sub">Magick++</a>
60      <a href="../www/architecture.html">Architecture</a>
61  <span>]</span><br /><span>[</span>
62      <a href="../www/install-source.html">Install from Source</a>
63      <a href="../www/install-source.html#unix" class="sub">Unix</a>
64      <a href="../www/install-source.html#windows" class="sub">Windows</a>
65      <a href="../www/binary-releases.html">Binary Releases</a>
66      <a href="../www/binary-releases.html#unix" class="sub">Unix</a>
67      <a href="../www/binary-releases.html#macosx" class="sub">Mac OS X</a>
68      <a href="../www/binary-releases.html#windows" class="sub">Windows</a>
69      <a href="../www/resources.html">Resources</a>
70  <span>]</span><br /><span>[</span>
71      <a href="../www/download.html">Download</a>
72  <span>]</span><br /><span>[</span>
73      <a href="../www/sitemap.html">Site Map</a>
74                        <a href="../www/links.html" class="sub">Links</a>
75  <span>]</span><br /><span>[</span>
76      <a href="../www/sponsors.html">Sponsors:</a>
77      <fieldset>
78  <a href="http://merchantwarehouse.com" class="sponsor" target="sponsor">Credit Card<br />Processing</a><!-- 200811010250 -->
79      <br />
80      <a href="http://www.callerbase.com" class="sponsor" target="sponsor">Phone Number<br />Search</a><!-- 200812010040 -->
81      <br />
82      <a href="http://www.online-kredit-index.de" class="sponsor" target="sponsor">Kredit</a><!-- 200812010120 -->
83      <br />
84      <a href="http://www.posters555.com" class="sponsor" target="sponsor">Poster</a><!-- 200903010800 -->
85      <br />
86      <a href="http://www.iceposter.com" class="sponsor" target="sponsor">Posters</a><!-- 200812010200 -->
87      <br />
88      <a href="http://meta-preisvergleich.de" class="sponsor" target="sponsor">Preisvergleich</a><!-- 200810010120 -->
89      <br />
90      <a href="http://www.imade-art.de"><img src="../images/imade_art2.jpg" alt="[Kunst bei imade-art]" width="116" height="28" border="0" name="Kunst bei imade-art"/></a> <!-- 200811010160 -->
91      </fieldset>
92      <span>]</span>
93      </font>
94      </td>
95
96      <td id="main" valign="top">
97<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>
98
99<ul>
100<li>code blocks are 64 samples in width and 32 samples in height</li>
101<li>no multicomponent transform</li>
102<li>4 resolution levels for each component</li>
103<li>compression is lossy at 64:1</li>
104</ul>
105
106<p>Use this command:</p>
107<pre class="text">
108convert wizard.png -define jp2:cblkwidth=64 -define jp2:cblkheight=32 -define jp2:nomct \
109  -define jp2:numrlvls=4 -define jp2:rate=0.015625 wizard.jpc
110</pre>
111<p>Here is a complete list of JPEG-2000 encoding options:</p>
112<dt>imgareatlx=x</dt>
113<dd>Set the x-coordinate of the top-left corner of the image area to x.</dd><br />
114<dt>imgareatly=y</dt>
115<dd>Set the y-coordinate of the top-left corner of the image area to y.</dd><br />
116<dt>tilegrdtlx=x</dt>
117<dd>Set the x-coordinate of the top-left corner of the tiling grid to x.</dd><br />
118<dt>tilegrdtly=y</dt>
119<dd>Set the y-coordinate of the top-left corner of the tiling grid to y.</dd><br />
120<dt>tilewidth=w</dt>
121<dd>Set the nominal tile width to w.</dd><br />
122<dt>tileheight=h</dt>
123<dd>Set the nominal tile height to h.</dd><br />
124<dt>prcwidth=w</dt>
125<dd>Set the precinct width to w. The argument w must be an integer power of two. The default value is 32768.</dd><br />
126<dt>prcheight=h</dt>
127<dd>Set the precinct height to h. The argument h must be an integer power of two. The default value is 32768.</dd><br />
128<dt>cblkwidth=w</dt>
129<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><br />
130<dt>cblkheight=h</dt>
131<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><br />
132<dt>mode=m</dt>
133<dd>Set the coding mode to m. The argument m must have one of the following values:</dd><br />
134<pre class="text">
135Value  Description
136int    integer mode
137real    real mode
138</pre>
139<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><br />
140<dt>rate=r</dt>
141<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><br />
142<dt>ilyrrates=r0[,r1,. . . ,rN]</dt>
143<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><br />
144<dt>prg=p</dt>
145<dd>Set the progression order to p. The argument p must have one of the following values:</dd><br />
146<pre class="text">
147Value   Description
148lrcp    layer-resolution-component-position (LRCP) progressive (i.e., rate scalable)
149rlcp    resolution-layer-component-position (RLCP) progressive (i.e., resolution scalable)
150rpcl    resolution-position-component-layer (RPCL) progressive
151pcrl    position-component-resolution-layer (PCRL) progressive
152cprl    component-position-resolution-layer (CPRL) progressive
153</pre>
154<dd>By default, LRCP progressive ordering is employed. Note that the RPCL and PCRL progressions are not valid for all possible image geometries.</dd><br />
155<dt>nomct</dt>
156<dd>Disallow the use of any multicomponent transform.</dd><br />
157<dt>numrlvls=n</dt>
158<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><br />
159<dt>sop</dt>
160<dd>Generate SOP marker segments.</dd><br />
161<dt>eph</dt>
162<dd>Generate EPH marker segments.</dd><br />
163<dt>lazy</dt>
164<dd>Enable lazy coding mode (a.k.a. arithmetic coding bypass).</dd><br />
165<dt>termall</dt>
166<dd>Terminate all coding passes.</dd><br />
167<dt>segsym</dt>
168<dd>Use segmentation symbols.</dd><br />
169<dt>vcausal</dt>
170<dd>Use vertically stripe causal contexts.</dd><br />
171<dt>pterm</dt>
172<dd>Use predictable termination.</dd><br />
173<dt>resetprob</dt>
174<dd>Reset the probability models after each coding pass.</dd><br />
175<dt>numgbits=n</dt>
176<dd>Set the number of guard bits to n.</dd><br />
177</ul>
178      </td>
179      <td id="margin" width="1%" height="100%" valign="top" align="right">&nbsp;</td>
180    </tr>
181  </tbody>
182  </table>
183  <div id="linkbar">
184    <span id="linkbar-west">
185      <font size="-1">
186      <a href="http://www.downloadroute.com/" target="1186761097">Downloads and Opinions</a><!-- 200810010100 -->
187      </font>
188    </span>
189    <span id="linkbar-center">
190      <a href="http://www.imagemagick.org/discourse-server/" target="1485592906">Discourse Server</a> &bull;
191      <a href="../www/mailing-list.html">Mailing Lists</a> &bull;
192      <a href="http://cafe.imagemagick.org" target="1450879710">Cafe</a> &bull;
193    <a href="http://studio.webbyland.com/ImageMagick/MagickStudio/scripts/MagickStudio.cgi" target="1851185807">Studio</a>
194    </span>
195  </div>
196  <div id="footer">
197    <span id="footer-west">&copy; 1999-2008 ImageMagick Studio LLC</span>
198  </div>
199  <div style="clear: both; margin: 0; width: 100%; "></div>
200</body>
201</html>
Note: See TracBrowser for help on using the browser.