Debian Codegraph @

www/jp2.html

raw symbols ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1
2
3
4 <!DOCTYPE html>
5 <html lang="en" data-bs-theme="dark">
6 <head>
7 <meta charset="utf-8" />
8 <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
9
10 <!-- Title and Description -->
11 <title>ImageMagick | JP2 Encoding Options</title>
12 <meta name="description" content="ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers." />
13
14 <!-- Canonical URL -->
15 <link rel="canonical" href="jp2.html" />
16
17 <!-- Robots -->
18 <meta name="robots" content="index, follow" />
19
20 <!-- Theme Color -->
21 <meta name="theme-color" content="#000000" />
22
23 <!-- Verification Tags -->
24 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
25
26 <!-- Favicon and Apple Icon -->
27 <link rel="shortcut icon" href="../images/wand.png" type="images/png" />
28 <link rel="apple-touch-icon" href="../images/wand.png" type="images/png" />
29
30 <!-- Preconnect for External Resources -->
31 <link rel="preconnect" href="../index.html" />
32
33 <!-- Stylesheets -->
34 <link rel="preload" href="assets/bootstrap.min.css" as="style" crossorigin="anonymous" />
35 <link rel="stylesheet" href="assets/bootstrap.min.css" />
36
37 <!-- Accessibility Enhancement -->
38 <style>
39 html {
40 scroll-padding-top: 70px;
41 }
42 </style>
43
44 <!-- Open Graph Meta Tags -->
45 <meta property="og:title" content="ImageMagick | JP2 Encoding Options" />
46 <meta property="og:description" content="ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers." />
47 <meta property="og:image" content="../images/logo.png" />
48 <meta property="og:logo" content="../images/logo.png" />
49 <meta property="og:url" content="../www/jp2.html" />
50 <meta property="og:type" content="website" />
51 <meta property="og:site_name" content="ImageMagick" />
52 <meta property="og:locale" content="en_us" />
53
54 <!-- Twitter Card Meta Tags -->
55 <meta name="twitter:card" content="summary_large_image" />
56 <meta name="twitter:site" content="@imagemagick" />
57 <meta name="twitter:creator" content="@imagemagick" />
58 <meta name="twitter:title" content="ImageMagick | JP2 Encoding Options" />
59 <meta name="twitter:description" content="ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers." />
60 <meta name="twitter:image" content="../images/logo.png" />
61 <meta name="twitter:image:alt" content="ImageMagick logo and tag line" />
62
63 <!-- JSON-LD Structured Data -->
64 <script type="application/ld+json">
65 {
66 "@context": "https://schema.org",
67 "@type": "SoftwareApplication",
68 "name": "ImageMagick",
69 "url": "../www/jp2.html",
70 "image": "../images/logo.png",
71 "description": "ImageMagick is a powerful open-source software suite for creating, editing, converting, and manipulating images in over 200 formats. Ideal for developers, designers, and researchers.",
72 "applicationCategory": "Multimedia",
73 "operatingSystem": "Windows, macOS, Linux, Unix",
74 "softwareVersion": "7.1.2-1",
75 "license": "../www/license.html",
76 "creator": {
77 "@type": "Organization",
78 "name": "ImageMagick Studio LLC",
79 "url": "https://imagemagick.org"
80 },
81 "keywords": [
82 "JP2 Encoding Options",
83 "image processing software",
84 "image conversion tool",
85 "batch image editing",
86 "open-source image editor",
87 "ImageMagick command-line",
88 "resize images ImageMagick",
89 "crop and rotate images",
90 "ImageMagick tutorial",
91 "ImageMagick automation",
92 "ImageMagick for developers",
93 "ImageMagick CLI",
94 "ImageMagick filters and effects",
95 "ImageMagick scripting",
96 "ImageMagick API integration"
97 ],
98 "sameAs": [
99 "https://github.com/ImageMagick",
100 "https://x.com/imagemagick"
101 ],
102 "offers": {
103 "@type": "Offer",
104 "price": "0.00",
105 "priceCurrency": "USD"
106 }
107 }
108 </script>
109 <!-- Google Custom Search -->
110 </head>
111 <body>
112 <script>
113 function setTheme(theme) {
114 localStorage.setItem('theme', theme);
115 updateThemeIcon(theme);
116 document.documentElement.setAttribute('data-bs-theme', theme === 'auto' ? getSystemTheme() : theme);
117 }
118 function getSystemTheme() {
119 return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
120 }
121 function updateThemeIcon(theme) {
122 const iconMap = {
123 light: '☀️',
124 dark: '🌙',
125 auto: '🌓'
126 };
127 document.getElementById('currentThemeIcon').textContent = iconMap[theme] || '🌓';
128 }
129 document.addEventListener('DOMContentLoaded', () => {
130 const savedTheme = localStorage.getItem('theme') || 'auto';
131 setTheme(savedTheme);
132 });
133 </script>
134 <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
135 <div class="container-fluid">
136 <a class="navbar-brand fw-bold" href="../index.html" title="$meta->sitename;">
137 ImageMagick </a>
138 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#magick-navbars" aria-controls="magick-navbars" aria-expanded="false" aria-label="Toggle navigation">
139 <span class="navbar-toggler-icon"></span>
140 </button>
141
142 <div class="collapse navbar-collapse" id="magick-navbars">
143 <ul class="navbar-nav me-auto">
144 <li class="nav-item">
145 <a class="nav-link " href="download.html">Download</a>
146 </li>
147 <li class="nav-item">
148 <a class="nav-link " href="../www/command-line-tools.html">Tools</a>
149 </li>
150 <li class="nav-item">
151 <a class="nav-link " href="command-line-processing.html">CLI</a>
152 </li>
153 <li class="nav-item">
154 <a class="nav-link " href="develop.html">Develop</a>
155 </li>
156 <li class="nav-item">
157 <a class="nav-link" rel="noopener" target="_blank" href="https://github.com/ImageMagick/ImageMagick/discussions">Community</a>
158 </li>
159 <li class="nav-item ms-4">
160 <iframe src="https://github.com/sponsors/ImageMagick/button" title="Sponsor ImageMagick" height="35" width="107" style="border: 0;"></iframe>
161 </li>
162 </ul>
163 <ul class="navbar-nav ms-auto">
164 <li class="nav-item dropdown">
165 <form class="d-flex form-inline" action="../www/search.html">
166 <input class="form-control me-2" type="text" name="q" placeholder="Search" aria-label="Search">
167 <button class="btn btn-outline-success" type="submit" name="sa">Search</button>
168 </form>
169 </li>
170 <li class="nav-item dropdown ms-2">
171 <a class="nav-link dropdown-toggle" href="#" id="themeDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
172 <span id="currentThemeIcon">🌓</span>
173 </a>
174 <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="themeDropdown">
175 <li><a class="dropdown-item" href="#" onclick="setTheme('light')">☀️ Light</a></li>
176 <li><a class="dropdown-item" href="#" onclick="setTheme('dark')">🌙 Dark</a></li>
177 <li><a class="dropdown-item" href="#" onclick="setTheme('auto')">🌓 Auto</a></li>
178 </ul>
179 </li>
180 </ul>
181 </div>
182 </div>
183 </nav>
184
185 <div class="col-lg-8 mx-auto text-body-secondary pt-5 pt-lg-5">
186 <header class="d-flex align-items-center pb-3 mb-5 border-bottom">
187 <div class="mt-3 ms-3">
188 <a href="../index.html" class="text-decoration-none">
189 <h1 class="fs-2 mb-1">JP2 Encoding Options</h1>
190 </a>
191 <h2 class="fs-5 text-muted">ImageMagick</h2>
192 </div>
193 </header>
194
195 <main class="container">
196 <div>
197
198 <p class="lead">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>
199
200 <ul>
201 <li>code blocks are 64 samples in width and 32 samples in height</li>
202 <li>no multicomponent transform</li>
203 <li>4 resolution levels for each component</li>
204 <li>compression is lossy at 64:1</li>
205 </ul>
206
207 <p>Use this command to convert a JPEG-2000 image to the PNG image format:</p>
208
209 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick wizard.jp2 wizard.png </samp></pre>
210
211 <p>Let's convert a JPEG image to a lossless JPEG-2000 image:</p>
212
213 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick wizard.jpg -quality 0 wizard.jp2 </samp></pre>
214
215 <p>Here we extract an area from the image:</p>
216
217 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick 'wizard.jp2[640x480+0+0]' wizard.png </samp></pre>
218
219 <p>Extract a particular tile from the image:</p>
220
221 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick 'wizard.jp2[2]' wizard.png </samp></pre>
222
223 <p>Specify a subsampling factor:</p>
224
225 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick wizard.png -colorspace YUV -sampling-factor 2:2 wizard.jp2 </samp></pre>
226
227 <p>Save a tiled JPEG-2000 image:</p>
228
229 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick wizard.png 'wizard.png[512x512]' </samp></pre>
230
231 <p>Write a digital Cinema 4K profile compliant codestream:</p>
232
233 <pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick wizard.png -resize 4096x2160! -depth 12 wizard.jp2 </samp></pre>
234
235 <p>Here is a complete list of JPEG-2000 decoding options:</p>
236
237 <div>
238 <table class="table table-sm table-hover table-striped table-responsive">
239 <tr>
240 <td>jp2:quality-layers=<var>x</var></td>
241 <td>set the maximum number of quality layers to decode.</td>
242 </tr>
243 <tr>
244 <td>jp2:reduce-factor=<var>x</var></td>
245 <td>set the number of highest resolution levels to be discarded.</td>
246 </tr>
247 </table></div>
248
249 <p>Here is a complete list of JPEG-2000 encoding options:</p>
250
251 <div>
252 <table class="table table-sm table-hover table-striped table-responsive">
253 <tr>
254 <td>jp2:number-resolutions=<var>x</var></td>
255 <td>number of resolutions to encode.</td>
256 </tr>
257 <tr>
258 <td>jp2:quality=<var>x</var>,<var>x</var>,...</td>
259 <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>
260 </tr>
261 <tr>
262 <td>jp2:rate=<var>x</var>,<var>x</var>,...</td>
263 <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>
264 </tr>
265 <tr>
266 <td>jp2:progression-order=<var>x</var></td>
267 <td>choose from LRCP, RLCP, RPCL, PCRL or CPRL.</td>
268 </tr>
269 </table></div>
270 </div>
271 </main><!-- /.container -->
272 <footer class="text-center pt-5 my-5 text-body-secondary border-top">
273 <div class="container-fluid">
274 <a href="security-policy.html">Security</a> •
275 <a href="news.html">News</a>
276
277 <a href="#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../images/wand.ico" /></a>
278
279 <a href="../www/links.html">Related</a> •
280 <a href="../www/sitemap.html">Sitemap</a>
281 <br />
282 <a href="../www/support.html">Sponsor</a> •
283 <a href="../www/cite.html">Cite</a> •
284 <a href="http://pgp.mit.edu/pks/lookup?op=get&amp;search=0x89AB63D48277377A">Public Key</a> •
285 <a href="../www/../www/https://imagemagick.org/script/contact.php">Contact Us</a>
286 <br />
287 <a href="https://github.com/imagemagick/imagemagick" rel="noopener" target="_blank" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 512 499.36" width="2%" height="2%" role="img" focusable="false"><title>GitHub</title><path fill="currentColor" fill-rule="evenodd" d="M256 0C114.64 0 0 114.61 0 256c0 113.09 73.34 209 175.08 242.9 12.8 2.35 17.47-5.56 17.47-12.34 0-6.08-.22-22.18-.35-43.54-71.2 15.49-86.2-34.34-86.2-34.34-11.64-29.57-28.42-37.45-28.42-37.45-23.27-15.84 1.73-15.55 1.73-15.55 25.69 1.81 39.21 26.38 39.21 26.38 22.84 39.12 59.92 27.82 74.5 21.27 2.33-16.54 8.94-27.82 16.25-34.22-56.84-6.43-116.6-28.43-116.6-126.49 0-27.95 10-50.8 26.35-68.69-2.63-6.48-11.42-32.5 2.51-67.75 0 0 21.49-6.88 70.4 26.24a242.65 242.65 0 0 1 128.18 0c48.87-33.13 70.33-26.24 70.33-26.24 14 35.25 5.18 61.27 2.55 67.75 16.41 17.9 26.31 40.75 26.31 68.69 0 98.35-59.85 120-116.88 126.32 9.19 7.9 17.38 23.53 17.38 47.41 0 34.22-.31 61.83-.31 70.23 0 6.85 4.61 14.81 17.6 12.31C438.72 464.97 512 369.08 512 256.02 512 114.62 397.37 0 256 0z"/></svg></a> •
288 <a href="https://twitter.com/imagemagick" rel="noopener" target="_blank" aria-label="Twitter"><svg xmlns="http://www.w3.org/2000/svg" class="navbar-nav-svg" viewBox="0 0 300 300" width="2%" height="2%" role="img" focusable="false"><title>Twitter</title><path d="M178.57 127.15 290.27 0h-26.46l-97.03 110.38L89.34 0H0l117.13 166.93L0 300.25h26.46l102.4-116.59 81.8 116.59h89.34M36.01 19.54H76.66l187.13 262.13h-40.66"/></svg></a>
289 <br />
290 <small>Copyright © 1999 ImageMagick Studio LLC</small>
291 </div>
292 </footer>
293 </div>
294
295 <!-- Javascript assets -->
296 <script src="assets/bootstrap.bundle.min.js" ></script>
297 </body>
298 </html>
299 <!-- Magick Cache 17th August 2025 15:31 -->