blob: eae846b63b276d5a3ca1d376fd1d85ae11af6329 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" />
<title>JP2 Encoding Options @ ImageMagick</title>
<meta name="application-name" content="ImageMagick" />
<meta name="description" content="Use ImageMagick® to create, edit, compose, or convert bitmap images. You can resize your image, crop it, change its shades and colors, add captions, among other operations." />
<meta name="application-url" content="" />
<meta name="generator" content="PHP" />
<meta name="keywords" content="jp2, encoding, options, ImageMagick, PerlMagick, image processing, image, photo, software, Magick++, OpenMP, convert" />
<meta name="rating" content="GENERAL" />
<meta name="robots" content="INDEX, FOLLOW" />
<meta name="generator" content="ImageMagick Studio LLC" />
<meta name="author" content="ImageMagick Studio LLC" />
<meta name="revisit-after" content="2 DAYS" />
<meta name="resource-type" content="document" />
<meta name="copyright" content="Copyright (c) 1999-2019 ImageMagick Studio LLC" />
<meta name="distribution" content="Global" />
<meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" />
<meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
<link href="../www/jp2.html" rel="canonical" />
<link href="../images/wand.png" rel="icon" />
<link href="../images/wand.ico" rel="shortcut icon" />
<link href="assets/magick.css" rel="stylesheet" />
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../images/wand.ico"/></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
<div class="navbar-collapse collapse" id="navbarsMagick" style="">
<ul class="navbar-nav mr-auto">
<li class="nav-item ">
<a class="nav-link" href="../index.html">Home <span class="sr-only">(current)</span></a>
<li class="nav-item ">
<a class="nav-link" href="download.html">Download</a>
<li class="nav-item ">
<a class="nav-link" href="command-line-tools.html">Tools</a>
<li class="nav-item ">
<a class="nav-link" href="command-line-processing.html">Command-line</a>
<li class="nav-item ">
<a class="nav-link" href="resources.html">Resources</a>
<li class="nav-item ">
<a class="nav-link" href="develop.html">Develop</a>
<li class="nav-item">
<a class="nav-link" target="_blank" href="">Community</a>
<form class="form-inline my-2 my-lg-0" action="">
<input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button>
<div class="container">
<script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle"
(adsbygoogle = window.adsbygoogle || []).push({});
<main class="container">
<div class="magick-template">
<div class="magick-header">
<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>
<li>code blocks are 64 samples in width and 32 samples in height</li>
<li>no multicomponent transform</li>
<li>4 resolution levels for each component</li>
<li>compression is lossy at 64:1</li>
<p>Use this command to convert a JPEG-2000 image to the PNG image format:</p>
<pre class="highlight"><code>convert wizard.jp2 wizard.png
<p>Let's convert a JPEG image to a lossless JPEG-2000 image:</p>
<pre class="highlight"><code>convert wizard.jpg -quality 0 wizard.jp2
<p>Here we extract an area from the image:</p>
<pre class="highlight"><code>convert 'wizard.jp2[640x480+0+0]' wizard.png
<p>Extract a particular tile from the image:</p>
<pre class="highlight"><code>convert 'wizard.jp2[2]' wizard.png
<p>Specify a subsampling factor:</p>
<pre class="highlight"><code>convert wizard.png -colorspace YUV -sampling-factor 2,2 wizard.jp2
<p>Save a tiled JPEG-2000 image:</p>
<pre class="highlight"><code>convert wizard.png 'wizard.png[512x512]'
<p>Write a digital Cinema 4K profile compliant codestream:</p>
<pre class="highlight"><code>convert wizard.png -resize 4096x2160! -depth 12 wizard.jp2
<p>Here is a complete list of JPEG-2000 decoding options:</p>
<div class="table-responsive">
<table class="table table-sm table-striped">
<td>set the maximum number of quality layers to decode.</td>
<td>set the number of highest resolution levels to be discarded.</td>
<p>Here is a complete list of JPEG-2000 encoding options:</p>
<div class="table-responsive">
<table class="table table-sm table-striped">
<td>number of resolutions to encode.</td>
<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>
<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>
<td>choose from LRCP, RLCP, RPCL, PCRL or CPRL.</td>
</main><!-- /.container -->
<footer class="magick-footer">
<p><a href="security-policy.html">Security</a>
<a href="architecture.html">Architecture</a>
<a href="links.html">Related</a>
<a href="sitemap.html">Sitemap</a>
<a href="jp2.html#"><img class="d-inline" id="wand" alt="And Now a Touch of Magick" width="16" height="16" src="../images/wand.ico"/></a>
<a href=";search=0x89AB63D48277377A">Public Key</a>
<a href="support.html">Donate</a>
<a href="">Contact Us</a>
<small>© 1999-2019 ImageMagick Studio LLC</small></p>
<!-- Javascript assets -->
<script src="assets/magick.js" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.3.1/jquery.min.js"><\/script>')</script>
<!-- Magick Cache 5th January 2019 11:43 -->