<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" /> <title>Motion Picture Digital Images @ 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="https://imagemagick.org" /> <meta name="generator" content="PHP" /> <meta name="keywords" content="motion, picture, digital, images, 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/motion-picture.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" /> </head> <body> <header> <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> </button> <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> <li class="nav-item "> <a class="nav-link" href="download.html">Download</a> </li> <li class="nav-item "> <a class="nav-link" href="command-line-tools.html">Tools</a> </li> <li class="nav-item "> <a class="nav-link" href="command-line-processing.html">Command-line</a> </li> <li class="nav-item "> <a class="nav-link" href="resources.html">Resources</a> </li> <li class="nav-item "> <a class="nav-link" href="develop.html">Develop</a> </li> <li class="nav-item"> <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a> </li> </ul> <form class="form-inline my-2 my-lg-0" action="https://imagemagick.org/script/search.php"> <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> </form> </div> </nav> <div class="container"> <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3129977114552745" data-ad-slot="6345125851" data-ad-format="auto"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </header> <main class="container"> <div class="magick-template"> <div class="magick-header"> <p class="text-center"><a href="motion-picture.html#log">Log Format</a> • <a href="motion-picture.html#properties">DPX Properties</a> • <a href="motion-picture.html#settings">DPX Settings</a></p> <p class="lead magick-description">DPX (SMPTE 268M-2003) - This format is used in Motion Picture and Effects industry that makes particular use of the extensive header information and the format's flexibility in being able to handle high dynamic range and logarithmic color values at a variety of bit depths using RGB or YCbCr pixel descriptions. It is based on, but largely supersedes, Kodak's Cineon format that has more a more film specific header.</p> <p>One example of it's use includes scanning film for use in post production. Each frame is stored as an individual DPX file ranging from 2k (2048 pixels wide) to 8k (8192 pixels wide - for IMAX frames) at anything between 8 to 64 bits per color component. A sequence of these might then be processed using compositing software, altering the color or adding visual effects. Once complete they might then be recorded digitally to tape or projected back on to film.</p> <p>The color values for each pixel are often stored logarithmically (particularly if the sequence is destined to be transferred back on to film) which more naturally reflects the density of how color information is stored in the emulsion on the original film. When viewed without alteration, logarithmic files appear to have very low contrast and requires a 'look up table' to translate the logarithmic image to something that resembles what you might see if the image was transferred back to film and projected in a cinema. Apart from making the image linear (like most typical computer images) and adjusting the gamma level this table sets where the black and white point lies.</p> <p>For a 10 bit logarithmic image where each color component value ranges from 0 to 1023 the black and white points are normally set at 95 for black and 685 for white. What this means is that the logarithmic file stores color values that are lighter than what the linear version will display as pure white and darker than what it will display as pure black. This extra information therefore remains available for an effects artists who might wish to alter the brightness of the image after it has been stored as a DPX file.</p> <p>As an example, had this information been lost, reducing the brightness of an image uniformly would result in highlights becoming darker, whereas with this extra information the highlights instead reduce in size and start showing details that were previously too bright to be seen. The latter is far closer to what happens in the real world.</p> <p>The header can contain Film and/or Television specific data related to a production. For example the television header can contain a SMPTE time code so that shots exported as a DPX sequence from a production's edit can be easily replaced once any effects have been added. The film header holds information about the reel of film the frames originated from and various camera settings that were used while filming. All these details usually stay with the images as they are passed between post-production companies.</p> <h2><a class="anchor" id="log"></a>Log Format</h2> <p>The color values for each pixel are often stored logarithmically (particularly if the sequence is destined to be transferred back on to film) which more naturally reflects the density of how color information is stored in the emulsion on the original film. When viewed without alteration logarithmic files appear to have very low contrast (leftmost image), and so require a 'look up table' to translate the logarithmic image to something that resembles what you might see if the image was transferred back to film and projected in a cinema (rightmost image). Apart from making the image linear (like most typical computer images) and adjusting the gamma level this table sets where the black and white point lies.</p> <ul> <a href="../images/bluebells_log.jpg"><img src="../images/bluebells_log.jpg" width="384" height="288" class="image-slices" alt="bluebells-log" /></a> <a href="../images/bluebells_lin.jpg"><img src="../images/bluebells_lin.jpg" width="384" height="288" class="image-slices" alt="bluebells-linear" /></a> </ul> <p>For a 10 bit logarithmic image where each color component value ranges from 0 to 1023 the black and white points are normally set at 95 for black and 685 for white. What this means is that the logarithmic file stores color values that are lighter than what the linear version will display as pure white and darker than what it will display as pure black. This extra information therefore remains available for an effects artists who might wish to alter the brightness of the image after it has been stored as a DPX file.</p> <p>As an example, had this information been lost, reducing the brightness of a linear image uniformly would result in highlights becoming darker (leftmost image), whereas with this extra information the highlights instead reduce in size and start showing details that were previously too bright to be seen (rightmost image). The latter is far closer to what happens in the real world.</p> <ul> <a href="../images/bluebells_clipped.jpg"><img src="../images/bluebells_clipped.jpg" width="384" height="288" class="image-slices" alt="bluebells-clipped" /></a> <a href="../images/bluebells_darker.jpg"><img src="../images/bluebells_darker.jpg" width="384" height="288" class="image-slices" alt="bluebells-darker" /></a> </ul> <h2><a class="anchor" id="properties"></a>DPX Properties</h2> <p>ImageMagick supports these DPX properties:</p> <pre class="pre-scrollable"><code>dpx:file.copyright dpx:file.creator dpx:file.filename dpx:file.project dpx:file.version dpx:film.count dpx:film.format dpx:film.frame_id dpx:film.frame_position dpx:film.frame_rate dpx:film.held_count dpx:film.id dpx:film.offset dpx:film.prefix dpx:film.sequence_length dpx:film.shutter_angle dpx:film.slate dpx:film.type dpx:orientation.aspect_ratio dpx:orientation.border dpx:orientation.device dpx:orientation.filename dpx:orientation.serial dpx:orientation.x_center dpx:orientation.x_offset dpx:orientation.x_size dpx:orientation.y_center dpx:orientation.y_offset dpx:orientation.y_size dpx:television.black_gain dpx:television.black_level dpx:television.break_point dpx:television.field_number dpx:television.frame_rate dpx:television.gamma dpx:television.integration_times dpx:television.interlace dpx:television.padding dpx:television.time.code dpx:television.time_offset dpx:television.user.bits dpx:television.vertical_sample_rate dpx:television.video_signal dpx:television.white_level dpx:user.id dpx:user.data </code></pre> <p>Look for any user data as the <code>dpx:user-data</code> image profile.</p> <p> To determine which properties are associated with your DPX image, use this command for example:</p> <pre class="highlight"><code>identify -verbose bluebells.dpx </code></pre> <p>To identify a particular property, try this:</p> <pre class="highlight"><code>identify -format "%[dpx:television.time.code]" bluebells.dpx </code></pre> <p>Finally, to set a property:</p> <pre class="highlight"><code>convert bluebells.dpx -define dpx:television.time.code=10:00:02:15 bluebells-001.dpx </code></pre> <h2><a class="anchor" id="settings"></a>DPX Settings</h2> <p>Use <a href="command-line-options.html#set">-set</a> to specify the image or film gamma or black and white points. For example use: </p> <pre class="highlight"><code>-set gamma 1.7 -set film-gamma 0.6 -set reference-black 95 -set reference-white 685 -set profile dpx:user.data </code></pre> </div> </div> </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="motion-picture.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="http://pgp.mit.edu/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> • <a href="support.html">Donate</a> • <a href="https://imagemagick.org/script/contact.php">Contact Us</a> <br/> <small>© 1999-2019 ImageMagick Studio LLC</small></p> </footer> <!-- 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> </body> </html> <!-- Magick Cache 5th January 2019 11:42 -->