]> granicus.if.org Git - imagemagick/blob - www/jp2.html
(no commit message)
[imagemagick] / www / jp2.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
2 <html lang="en">
3 <head>
4   <meta charset="utf-8">
5   <meta http-equiv="X-UA-Compatible" content="IE=edge">
6   <meta name="viewport" content="width=device-width, initial-scale=1">
7   <title>ImageMagick: JP2 Encoding Options</title>
8   <meta http-equiv="content-language" content="en-US">
9   <meta http-equiv="content-type" content="text/html; charset=utf-8">
10   <meta http-equiv="reply-to" content="magick-users@imagemagick.org">
11   <meta name="application-name" content="ImageMagick">
12   <meta name="description" content="ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, WebP, Postscript, PDF, and SVG. Use ImageMagick to resize, flip, mirror, rotate, distort, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.">
13   <meta name="application-url" content="http://www.imagemagick.org">
14   <meta name="generator" content="PHP">
15   <meta name="keywords" content="jp2, encoding, options, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert">
16   <meta name="rating" content="GENERAL">
17   <meta name="robots" content="INDEX, FOLLOW">
18   <meta name="generator" content="ImageMagick Studio LLC">
19   <meta name="author" content="ImageMagick Studio LLC">
20   <meta name="revisit-after" content="2 DAYS">
21   <meta name="resource-type" content="document">
22   <meta name="copyright" content="Copyright (c) 1999-2012 ImageMagick Studio LLC">
23   <meta name="distribution" content="Global">
24   <link rel="icon" href="../images/wand.png">
25   <link rel="shortcut icon" href="../images/wand.ico" type="images/x-icon">
26   <link rel="stylesheet" href="www/css/bootstrap.min.css">
27   <link rel="stylesheet" href="www/css/magick.css">
28 </head>
29
30 <body>
31 <div class="main">
32 <div class="magick-masthead">
33   <div class="container">
34     <script type="text/javascript">
35     <!--
36       google_ad_client = "pub-3129977114552745";
37       google_ad_slot = "5439289906";
38       google_ad_width = 728;
39       google_ad_height = 90;
40     //-->
41     </script>
42     <center><script type="text/javascript" src="http://localhost/pagead/show_ads.js">
43     </script></center>
44     <nav class="magick-nav">
45       <a class="magick-nav-item " href="http://www.imagemagick.org/ImageMagick-7.0.0/index.html">Home</a>
46       <a class="magick-nav-item " href="binary-releases.html">Downloads</a>
47       <a class="magick-nav-item " href="command-line-tools.html">Tools</a>
48       <a class="magick-nav-item " href="command-line-options.html">Options</a>
49       <a class="magick-nav-item " href="api.html">Development</a>
50       <a class="magick-nav-item" href="../discourse-server">Community</a>
51       <a class="magick-nav-item navbar-right " href="search.html">Search</a>
52     </nav>
53   </div>
54 </div>
55 <div class="container">
56 <div class="magick-header">
57
58 <p class="lead magick-description">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>
59
60 <ul>
61 <li>code blocks are 64 samples in width and 32 samples in height</li>
62 <li>no multicomponent transform</li>
63 <li>4 resolution levels for each component</li>
64 <li>compression is lossy at 64:1</li>
65 </ul>
66
67 <p>Use this command to convert a JPEG-2000 image to the PNG image format:</p>
68
69 <pre>
70 convert wizard.jp2 wizard.png
71 </pre>
72
73 <p>Here we extract an area from the image:</p>
74
75 <pre>
76 convert 'wizard.jp2[640x480+0+0]' wizard.png
77 </pre>
78
79 <p>Extract a particular tile from the image:</p>
80
81 <pre>
82 convert 'wizard.jp2[2]' wizard.png
83 </pre>
84
85 <p>Specify a subsampling factor:</p>
86
87 <pre>
88 convert wizard.png -colorspace YUV -sampling-factor 2,2 wizard.jp2
89 </pre>
90
91 <p>Save a tiled JPEG-2000 image:</p>
92
93 <pre>
94 convert wizard.png 'wizard.png[512x512]'
95 </pre>
96
97 <p>Write a digital Cinema 4K profile compliant codestream:</p>
98
99 <pre>
100 convert wizard.png -resize 4096x2160! -depth 12 wizard.jp2
101 </pre>
102
103 <p>Here is a complete list of JPEG-2000 decoding options:</p>
104
105 <div class="table-responsive">
106 <table class="table table-condensed table-striped">
107   <tr>
108     <td>jp2:layer-number=<var>x</var></td>
109     <td>set the maximum number of quality layers to decode.</td>
110   </tr>
111   <tr>
112     <td>jp2:reduce-factor=<var>x</var></td>
113     <td>set the number of highest resolution levels to be discarded.</td>
114   </tr>
115 </table></div>
116
117 <p>Here is a complete list of JPEG-2000 encoding options:</p>
118
119 <div class="table-responsive">
120 <table class="table table-condensed table-striped">
121   <tr>
122     <dt>jp2:number-resolutions=<var>x</var></dt>
123     <dd>number of resolutions to encode.</dd>
124   </tr>
125   <tr>
126     <td>jp2:quality=<var>x</var>,<var>x</var>,...</td>
127     <td>set the quality layer PSNR, given in dB. The order is from left to right in ascending order. The default is a single lossless quality layer.</td>
128   </tr>
129   <tr>
130     <td>jp2:rate=<var>x</var>,<var>x</var>,...</td>
131     <td>the compression ratio values. Each value is a factor of compression, thus 20 means 20 times compressed. The order is from left to right in descending order. A final lossless quality layer is signified by the value 1. The default is a single lossless quality layer.</td>
132   </tr>
133   <tr>
134     <td>jp2:progression-order=<var>x</var></td>
135     <td>choose from LRCP, RLCP, RPCL, PCRL or CPRL.</td>
136   </tr>
137 </table></div>
138 </div>
139   <footer class="magick-footer">
140     <div class="magick-nav-item navbar-left">
141       <a href="support.html">Donations</a>
142     </div>
143     <div class="magick-nav-item navbar-right">
144       <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://www.imagemagick.org/"></a>
145       <noscript>
146         <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank">
147         <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0"></a>
148       </noscript>
149     </div>
150     <p><a href="sitemap.html">Sitemap</a> •
151     <a href="links.html">Related</a> •
152     <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Image Studio</a> •
153     <a href="http://jqmagick.imagemagick.org/">JqMagick</a> •
154     <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a>
155 </p>
156     <p><a href="jp2.html#">Back to top</a> •
157     <a href="contact.html">Contact Us</a></p>
158   </footer>
159 </div><!-- /.container -->
160
161   <script src="https://localhost/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
162   <script src="../js/bootstrap.min.js"></script>
163   <script type="text/javascript">
164     /*  */
165     (function() {
166         var s = document.createElement('offline-script'), t = document.getElementsByTagName('offline-script')[0];
167         s.type = 'text/javascript';
168         s.async = true;
169         s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto';
170         t.parentNode.insertBefore(s, t);
171     })();
172     /*  */
173   </script>
174 </div>
175 </body>
176 </html>