1 2 3 4 5 <!DOCTYPE html> 6 <html lang="en"> 7 <head> 8 <meta charset="utf-8" /> 9 <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" /> 10 <title>Motion Picture Digital Images @ ImageMagick</title> 11 <meta name="application-name" content="ImageMagick" /> 12 <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." /> 13 <meta name="application-url" content="https://imagemagick.org" /> 14 <meta name="generator" content="PHP" /> 15 <meta name="keywords" content="motion, picture, digital, images, 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-2019 ImageMagick Studio LLC" /> 23 <meta name="distribution" content="Global" /> 24 <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1" /> 25 <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" /> 26 <link href="../www/motion-picture.html" rel="canonical" /> 27 <link href="../images/wand.png" rel="icon" /> 28 <link href="../images/wand.ico" rel="shortcut icon" /> 29 <link href="assets/magick.css" rel="stylesheet" /> 30 </head> 31 <body> 32 <header> 33 <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark"> 34 <a class="navbar-brand" href="../index.html"><img class="d-block" id="icon" alt="ImageMagick" width="32" height="32" src="../images/wand.ico"/></a> 35 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsMagick" aria-controls="navbarsMagick" aria-expanded="false" aria-label="Toggle navigation"> 36 <span class="navbar-toggler-icon"></span> 37 </button> 38 39 <div class="navbar-collapse collapse" id="navbarsMagick" style=""> 40 <ul class="navbar-nav mr-auto"> 41 <li class="nav-item "> 42 <a class="nav-link" href="../index.html">Home <span class="sr-only">(current)</span></a> 43 </li> 44 <li class="nav-item "> 45 <a class="nav-link" href="download.html">Download</a> 46 </li> 47 <li class="nav-item "> 48 <a class="nav-link" href="command-line-tools.html">Tools</a> 49 </li> 50 <li class="nav-item "> 51 <a class="nav-link" href="command-line-processing.html">Command-line</a> 52 </li> 53 <li class="nav-item "> 54 <a class="nav-link" href="resources.html">Resources</a> 55 </li> 56 <li class="nav-item "> 57 <a class="nav-link" href="develop.html">Develop</a> 58 </li> 59 <li class="nav-item"> 60 <a class="nav-link" target="_blank" href="https://imagemagick.org/discourse-server/">Community</a> 61 </li> 62 </ul> 63 <form class="form-inline my-2 my-lg-0" action="https://imagemagick.org/script/search.php"> 64 <input class="form-control mr-sm-2" type="text" name="q" placeholder="Search" aria-label="Search"> 65 <button class="btn btn-outline-success my-2 my-sm-0" type="submit" name="sa">Search</button> 66 </form> 67 </div> 68 </nav> 69 <div class="container"> 70 <script async="async" src="http://localhost/pagead/js/adsbygoogle.js"></script> <ins class="adsbygoogle" 71 style="display:block" 72 data-ad-client="ca-pub-3129977114552745" 73 data-ad-slot="6345125851" 74 data-ad-format="auto"></ins> 75 <script> 76 (adsbygoogle = window.adsbygoogle || []).push({}); 77 </script> 78 79 </div> 80 </header> 81 <main class="container"> 82 <div class="magick-template"> 83 <div class="magick-header"> 84 <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> 85 86 <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> 87 88 <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> 89 90 <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> 91 92 <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> 93 94 <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> 95 96 <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> 97 98 <h2><a class="anchor" id="log"></a>Log Format</h2> 99 100 <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> 101 102 <ul> 103 <a href="../images/bluebells_log.jpg"><img src="../images/bluebells_log.jpg" width="384" height="288" class="image-slices" alt="bluebells-log" /></a> 104 <a href="../images/bluebells_lin.jpg"><img src="../images/bluebells_lin.jpg" width="384" height="288" class="image-slices" alt="bluebells-linear" /></a> 105 </ul> 106 107 <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> 108 109 <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> 110 111 <ul> 112 <a href="../images/bluebells_clipped.jpg"><img src="../images/bluebells_clipped.jpg" width="384" height="288" class="image-slices" alt="bluebells-clipped" /></a> 113 <a href="../images/bluebells_darker.jpg"><img src="../images/bluebells_darker.jpg" width="384" height="288" class="image-slices" alt="bluebells-darker" /></a> 114 </ul> 115 116 <h2><a class="anchor" id="properties"></a>DPX Properties</h2> 117 118 <p>ImageMagick supports these DPX properties:</p> 119 120 <pre class="pre-scrollable"><code>dpx:file.copyright 121 dpx:file.creator 122 dpx:file.filename 123 dpx:file.project 124 dpx:file.version 125 dpx:film.count 126 dpx:film.format 127 dpx:film.frame_id 128 dpx:film.frame_position 129 dpx:film.frame_rate 130 dpx:film.held_count 131 dpx:film.id 132 dpx:film.offset 133 dpx:film.prefix 134 dpx:film.sequence_length 135 dpx:film.shutter_angle 136 dpx:film.slate 137 dpx:film.type 138 dpx:orientation.aspect_ratio 139 dpx:orientation.border 140 dpx:orientation.device 141 dpx:orientation.filename 142 dpx:orientation.serial 143 dpx:orientation.x_center 144 dpx:orientation.x_offset 145 dpx:orientation.x_size 146 dpx:orientation.y_center 147 dpx:orientation.y_offset 148 dpx:orientation.y_size 149 dpx:television.black_gain 150 dpx:television.black_level 151 dpx:television.break_point 152 dpx:television.field_number 153 dpx:television.frame_rate 154 dpx:television.gamma 155 dpx:television.integration_times 156 dpx:television.interlace 157 dpx:television.padding 158 dpx:television.time.code 159 dpx:television.time_offset 160 dpx:television.user.bits 161 dpx:television.vertical_sample_rate 162 dpx:television.video_signal 163 dpx:television.white_level 164 dpx:user.id 165 dpx:user.data 166 </code></pre> 167 168 <p>Look for any user data as the <code>dpx:user-data</code> image profile.</p> 169 170 <p> To determine which properties are associated with your DPX image, use this command for example:</p> 171 172 <pre class="highlight"><code>identify -verbose bluebells.dpx 173 </code></pre> 174 175 <p>To identify a particular property, try this:</p> 176 177 <pre class="highlight"><code>identify -format "%[dpx:television.time.code]" bluebells.dpx 178 </code></pre> 179 180 <p>Finally, to set a property:</p> 181 182 <pre class="highlight"><code>convert bluebells.dpx -define dpx:television.time.code=10:00:02:15 bluebells-001.dpx 183 </code></pre> 184 185 <h2><a class="anchor" id="settings"></a>DPX Settings</h2> 186 187 <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: 188 </p> 189 190 <pre class="highlight"><code>-set gamma 1.7 191 -set film-gamma 0.6 192 -set reference-black 95 193 -set reference-white 685 194 -set profile dpx:user.data 195 </code></pre> 196 197 </div> 198 </div> 199 </main><!-- /.container --> 200 <footer class="magick-footer"> 201 <p><a href="security-policy.html">Security</a> 202 <a href="architecture.html">Architecture</a> 203 <a href="links.html">Related</a> 204 <a href="sitemap.html">Sitemap</a> 205 206 <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> 207 208 <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> 209 <a href="support.html">Donate</a> 210 <a href="https://imagemagick.org/script/contact.php">Contact Us</a> 211 <br/> 212 <small> 1999-2019 ImageMagick Studio LLC</small></p> 213 </footer> 214 215 <!-- Javascript assets --> 216 <script src="assets/magick.js" crossorigin="anonymous"></script> 217 <script>window.jQuery || document.write('<script src="https://localhost/ajax/libs/jquery/3.3.1/jquery.min.js"><\/script>')</script> 218 </body> 219 </html> 220 <!-- Magick Cache 5th January 2019 11:42 -->