| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
| 2 | <html lang="en"> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 3 | <head> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 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"> |
| cristy | ffb69ed | 2010-12-25 00:06:48 +0000 | [diff] [blame] | 7 | <title>ImageMagick: JP2 Encoding Options</title> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 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"> |
| cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 24 | <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 25 | <link rel="icon" href="../images/wand.png"> |
| 26 | <link rel="shortcut icon" href="../images/wand.ico" type="images/x-icon"> |
| cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 27 | <link rel="stylesheet" href="css/bootstrap.min.css"> |
| 28 | <link rel="stylesheet" href="css/magick.css"> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 29 | </head> |
| 30 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 31 | <body> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 32 | <div class="main"> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 33 | <div class="magick-masthead"> |
| 34 | <div class="container"> |
| 35 | <script type="text/javascript"> |
| 36 | <!-- |
| 37 | google_ad_client = "pub-3129977114552745"; |
| 38 | google_ad_slot = "5439289906"; |
| 39 | google_ad_width = 728; |
| 40 | google_ad_height = 90; |
| 41 | //--> |
| 42 | </script> |
| 43 | <center><script type="text/javascript" src="http://localhost/pagead/show_ads.js"> |
| 44 | </script></center> |
| 45 | <nav class="magick-nav"> |
| cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 46 | <a class="magick-nav-item " href="../index.html">Home</a> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 47 | <a class="magick-nav-item " href="binary-releases.html">Downloads</a> |
| 48 | <a class="magick-nav-item " href="command-line-tools.html">Tools</a> |
| 49 | <a class="magick-nav-item " href="command-line-options.html">Options</a> |
| 50 | <a class="magick-nav-item " href="api.html">Development</a> |
| cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 51 | <a class="magick-nav-item" href="http://www.imagemagick.org/discourse-server/">Community</a> |
| cristy | abed55c | 2015-05-06 17:07:00 +0000 | [diff] [blame^] | 52 | <a class="magick-nav-item navbar-right " href="http://www.imagemagick.org/script/search.php">Search</a> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 53 | </nav> |
| 54 | </div> |
| 55 | </div> |
| 56 | <div class="container"> |
| 57 | <div class="magick-header"> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 58 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 59 | <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> |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 60 | |
| 61 | <ul> |
| 62 | <li>code blocks are 64 samples in width and 32 samples in height</li> |
| 63 | <li>no multicomponent transform</li> |
| 64 | <li>4 resolution levels for each component</li> |
| 65 | <li>compression is lossy at 64:1</li> |
| 66 | </ul> |
| 67 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 68 | <p>Use this command to convert a JPEG-2000 image to the PNG image format:</p> |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 69 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 70 | <pre> |
| 71 | convert wizard.jp2 wizard.png |
| 72 | </pre> |
| 73 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 74 | <p>Here we extract an area from the image:</p> |
| cristy | a7cb431 | 2010-06-26 00:47:03 +0000 | [diff] [blame] | 75 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 76 | <pre> |
| 77 | convert 'wizard.jp2[640x480+0+0]' wizard.png |
| 78 | </pre> |
| 79 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 80 | <p>Extract a particular tile from the image:</p> |
| cristy | 29c5c99 | 2011-06-25 13:58:49 +0000 | [diff] [blame] | 81 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 82 | <pre> |
| 83 | convert 'wizard.jp2[2]' wizard.png |
| 84 | </pre> |
| 85 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 86 | <p>Specify a subsampling factor:</p> |
| 87 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 88 | <pre> |
| 89 | convert wizard.png -colorspace YUV -sampling-factor 2,2 wizard.jp2 |
| 90 | </pre> |
| 91 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 92 | <p>Save a tiled JPEG-2000 image:</p> |
| 93 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 94 | <pre> |
| 95 | convert wizard.png 'wizard.png[512x512]' |
| 96 | </pre> |
| 97 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 98 | <p>Write a digital Cinema 4K profile compliant codestream:</p> |
| 99 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 100 | <pre> |
| 101 | convert wizard.png -resize 4096x2160! -depth 12 wizard.jp2 |
| 102 | </pre> |
| 103 | |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 104 | <p>Here is a complete list of JPEG-2000 decoding options:</p> |
| 105 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 106 | <div class="table-responsive"> |
| 107 | <table class="table table-condensed table-striped"> |
| 108 | <tr> |
| 109 | <td>jp2:layer-number=<var>x</var></td> |
| 110 | <td>set the maximum number of quality layers to decode.</td> |
| 111 | </tr> |
| 112 | <tr> |
| 113 | <td>jp2:reduce-factor=<var>x</var></td> |
| 114 | <td>set the number of highest resolution levels to be discarded.</td> |
| 115 | </tr> |
| 116 | </table></div> |
| cristy | f1b8a09 | 2014-02-20 15:46:11 +0000 | [diff] [blame] | 117 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 118 | <p>Here is a complete list of JPEG-2000 encoding options:</p> |
| 119 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 120 | <div class="table-responsive"> |
| 121 | <table class="table table-condensed table-striped"> |
| 122 | <tr> |
| 123 | <dt>jp2:number-resolutions=<var>x</var></dt> |
| 124 | <dd>number of resolutions to encode.</dd> |
| 125 | </tr> |
| 126 | <tr> |
| 127 | <td>jp2:quality=<var>x</var>,<var>x</var>,...</td> |
| 128 | <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> |
| 129 | </tr> |
| 130 | <tr> |
| 131 | <td>jp2:rate=<var>x</var>,<var>x</var>,...</td> |
| 132 | <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> |
| 133 | </tr> |
| 134 | <tr> |
| 135 | <td>jp2:progression-order=<var>x</var></td> |
| 136 | <td>choose from LRCP, RLCP, RPCL, PCRL or CPRL.</td> |
| 137 | </tr> |
| 138 | </table></div> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 139 | </div> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 140 | <footer class="magick-footer"> |
| 141 | <div class="magick-nav-item navbar-left"> |
| cristy | 85893d3 | 2015-05-06 13:44:09 +0000 | [diff] [blame] | 142 | <a href="support.html">Donate</a> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 143 | </div> |
| 144 | <div class="magick-nav-item navbar-right"> |
| cristy | 44443b9 | 2015-05-05 00:06:07 +0000 | [diff] [blame] | 145 | <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="../index.html"></a> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 146 | <noscript> |
| 147 | <a href="http://flattr.com/thing/947300/Convert-Edit-And-Compose-Images" target="_blank"> |
| 148 | <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0"></a> |
| 149 | </noscript> |
| 150 | </div> |
| 151 | <p><a href="sitemap.html">Sitemap</a> • |
| 152 | <a href="links.html">Related</a> • |
| 153 | <a href="http://www.imagemagick.org/MagickStudio/scripts/MagickStudio.cgi">Image Studio</a> • |
| 154 | <a href="http://jqmagick.imagemagick.org/">JqMagick</a> • |
| 155 | <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> |
| 156 | </p> |
| 157 | <p><a href="jp2.html#">Back to top</a> • |
| cristy | 85893d3 | 2015-05-06 13:44:09 +0000 | [diff] [blame] | 158 | <a href="http://www.imagemagick.org/script/contact.php">Contact Us</a></p> |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 159 | </footer> |
| 160 | </div><!-- /.container --> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 161 | |
| cristy | d243201 | 2015-05-04 23:15:15 +0000 | [diff] [blame] | 162 | <script src="https://localhost/ajax/libs/jquery/1.11.2/jquery.min.js"></script> |
| 163 | <script src="../js/bootstrap.min.js"></script> |
| 164 | <script type="text/javascript"> |
| 165 | /* */ |
| 166 | (function() { |
| 167 | var s = document.createElement('offline-script'), t = document.getElementsByTagName('offline-script')[0]; |
| 168 | s.type = 'text/javascript'; |
| 169 | s.async = true; |
| 170 | s.src = 'http://api.flattr.com/js/0.6/load.js?mode=auto'; |
| 171 | t.parentNode.insertBefore(s, t); |
| 172 | })(); |
| 173 | /* */ |
| 174 | </script> |
| cristy | 149d58c | 2013-08-07 19:44:54 +0000 | [diff] [blame] | 175 | </div> |
| cristy | ad41c0c | 2012-10-31 00:49:28 +0000 | [diff] [blame] | 176 | </body> |
| cristy | 5a367e4 | 2015-05-05 12:39:18 +0000 | [diff] [blame] | 177 | </html> |