]> granicus.if.org Git - imagemagick/blob - www/jp2.html
...
[imagemagick] / www / jp2.html
1
2
3
4
5 <!DOCTYPE html>
6 <html lang="en">
7 <head>
8     <title>ImageMagick: JP2 Encoding Options</title>
9   <meta charset="utf-8" />
10   <meta http-equiv="X-UA-Compatible" content="IE=edge" />
11   <meta name="viewport" content="width=device-width, initial-scale=1" />
12   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
13   <meta name="application-name" content="ImageMagick"/>
14   <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."/>
15   <meta name="application-url" content="http://www.imagemagick.org"/>
16   <meta name="generator" content="PHP"/>
17   <meta name="keywords" content="jp2, encoding, options, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert"/>
18   <meta name="rating" content="GENERAL"/>
19   <meta name="robots" content="INDEX, FOLLOW"/>
20   <meta name="generator" content="ImageMagick Studio LLC"/>
21   <meta name="author" content="ImageMagick Studio LLC"/>
22   <meta name="revisit-after" content="2 DAYS"/>
23   <meta name="resource-type" content="document"/>
24   <meta name="copyright" content="Copyright (c) 1999-2016 ImageMagick Studio LLC"/>
25   <meta name="distribution" content="Global"/>
26   <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
27   <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
28   <link rel="icon" href="../images/wand.png"/>
29   <link rel="shortcut icon" href="../images/wand.ico"/>
30   <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Roboto:900,400,400italic,700,700italic,300,300italic|Open+Sans:300italic,400italic,700italic,300,400,600,700">
31   <link rel="stylesheet" href="css/magick.css"/>
32 </head>
33 <body>
34 <div class="main">
35 <div class="magick-masthead">
36   <div class="container">
37     <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
38          style="display:block"
39          data-ad-client="ca-pub-3129977114552745"
40          data-ad-slot="6345125851"
41          data-ad-format="auto"></ins>
42     <script>
43       (adsbygoogle = window.adsbygoogle || []).push({});
44     </script>
45     <nav class="magick-nav">
46       <a class="magick-nav-item " href="../index.html">Home</a>
47       <a class="magick-nav-item " href="binary-releases.html">Download</a>
48       <a class="magick-nav-item " href="command-line-tools.html">Tools</a>
49       <a class="magick-nav-item " href="command-line-processing.html">Command-line</a>
50       <a class="magick-nav-item " href="resources.html">Resources</a>
51       <a class="magick-nav-item " href="api.html">Develop</a>
52       <a class="magick-nav-item " href="http://www.imagemagick.org/script/search.php">Search</a>
53       <a class="magick-nav-item pull-right" href="https://www.imagemagick.org/discourse-server/">Community</a>
54     </nav>
55   </div>
56 </div>
57 <div class="container">
58 <div class="magick-header">
59
60 <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>
61
62 <ul>
63 <li>code blocks are 64 samples in width and 32 samples in height</li>
64 <li>no multicomponent transform</li>
65 <li>4 resolution levels for each component</li>
66 <li>compression is lossy at 64:1</li>
67 </ul>
68
69 <p>Use this command to convert a JPEG-2000 image to the PNG image format:</p>
70
71 <pre>
72 convert wizard.jp2 wizard.png
73 </pre>
74
75 <p>Let's convert a JPEG image to a lossless JPEG-2000 image:</p>
76
77 <pre>
78 convert wizard.jpg -quality 0 wizard.jp2
79 </pre>
80
81 <p>Here we extract an area from the image:</p>
82
83 <pre>
84 convert 'wizard.jp2[640x480+0+0]' wizard.png
85 </pre>
86
87 <p>Extract a particular tile from the image:</p>
88
89 <pre>
90 convert 'wizard.jp2[2]' wizard.png
91 </pre>
92
93 <p>Specify a subsampling factor:</p>
94
95 <pre>
96 convert wizard.png -colorspace YUV -sampling-factor 2,2 wizard.jp2
97 </pre>
98
99 <p>Save a tiled JPEG-2000 image:</p>
100
101 <pre>
102 convert wizard.png 'wizard.png[512x512]'
103 </pre>
104
105 <p>Write a digital Cinema 4K profile compliant codestream:</p>
106
107 <pre>
108 convert wizard.png -resize 4096x2160! -depth 12 wizard.jp2
109 </pre>
110
111 <p>Here is a complete list of JPEG-2000 decoding options:</p>
112
113 <div class="table-responsive">
114 <table class="table table-condensed table-striped">
115   <tr>
116     <td>jp2:layer-number=<var>x</var></td>
117     <td>set the maximum number of quality layers to decode.</td>
118   </tr>
119   <tr>
120     <td>jp2:reduce-factor=<var>x</var></td>
121     <td>set the number of highest resolution levels to be discarded.</td>
122   </tr>
123 </table></div>
124
125 <p>Here is a complete list of JPEG-2000 encoding options:</p>
126
127 <div class="table-responsive">
128 <table class="table table-condensed table-striped">
129   <tr>
130     <dt>jp2:number-resolutions=<var>x</var></dt>
131     <dd>number of resolutions to encode.</dd>
132   </tr>
133   <tr>
134     <td>jp2:quality=<var>x</var>,<var>x</var>,...</td>
135     <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>
136   </tr>
137   <tr>
138     <td>jp2:rate=<var>x</var>,<var>x</var>,...</td>
139     <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>
140   </tr>
141   <tr>
142     <td>jp2:progression-order=<var>x</var></td>
143     <td>choose from LRCP, RLCP, RPCL, PCRL or CPRL.</td>
144   </tr>
145 </table></div>
146 </div>
147   <footer class="magick-footer">
148     <p><a href="support.html">Donate</a> •
149      <a href="sitemap.html">Sitemap</a> •
150     <a href="links.html">Related</a> •
151     <a href="architecture.html">Architecture</a>
152 </p>
153     <p><a href="jp2.html#">Back to top</a> •
154     <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
155     <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p>
156         <p><small>©  1999-2016 ImageMagick Studio LLC</small></p>
157   </footer>
158 </div><!-- /.container -->
159
160   <script src="https://localhost/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
161   <script src="../js/magick.html"></script>
162 </div>
163 </body>
164 </html>