Home | History | Annotate | Download | only in script
      1 
      2 
      3 
      4 
      5 <!DOCTYPE html>
      6 <html lang="en">
      7 <head>
      8   <meta name="google-site-verification" content="_bMOCDpkx9ZAzBwb2kF3PRHbfUUdFj2uO8Jd1AXArz4" />
      9     <title>ImageMagick: Alpha Compositing</title>
     10   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
     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 Bzier curves."/>
     13   <meta name="application-url" content="http://www.imagemagick.org"/>
     14   <meta name="generator" content="PHP"/>
     15   <meta name="keywords" content="alpha, compositing, 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-2015 ImageMagick Studio LLC"/>
     23   <meta name="distribution" content="Global"/>
     24   <meta name="magick-serial" content="P131-S030410-R485315270133-P82224-A6668-G1245-1"/>
     25   <link rel="icon" href="../image/wand.png"/>
     26   <link rel="shortcut icon" href="../image/wand.ico"/>
     27   <link rel="stylesheet" href="../css/magick.php"/>
     28 </head>
     29 <body>
     30 <div class="main">
     31 <div class="magick-masthead">
     32   <div class="container">
     33     <script async="async" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>    <ins class="adsbygoogle"
     34          style="display:block"
     35          data-ad-client="ca-pub-3129977114552745"
     36          data-ad-slot="6345125851"
     37          data-ad-format="auto"></ins>
     38     <script>
     39       (adsbygoogle = window.adsbygoogle || []).push({});
     40     </script>
     41     <nav class="magick-nav">
     42       <a class="magick-nav-item " href="../index.php">Home</a>
     43       <a class="magick-nav-item " href="binary-releases.php">Download</a>
     44       <a class="magick-nav-item " href="command-line-tools.php">Tools</a>
     45       <a class="magick-nav-item " href="command-line-processing.php">Command-line</a>
     46       <a class="magick-nav-item " href="resources.php">Resources</a>
     47       <a class="magick-nav-item " href="api.php">Develop</a>
     48       <a class="magick-nav-item " href="search.php">Search</a>
     49       <a class="magick-nav-item pull-right" href="http://www.imagemagick.org/discourse-server/">Community</a>
     50     </nav>
     51   </div>
     52 </div>
     53 <div class="container">
     54 <div class="magick-header">
     55 
     56 <p class="lead magick-description">This page descibed the Image composition methods that is used to define how
     57 two images should be merged together in various image operations.  For the
     58 Command Line API it is typically set using the <a
     59 href="command-line-options.php#compose" >-compose</a> setting option. </p>
     60 
     61 
     62 <p>The description of composition uses abstract terminology in order to allow
     63 the description to be more precise, while avoiding constant values which are
     64 specific to a particular build configuration. Each image pixel is represented
     65 by red, green, and blue levels (which are equal for a gray pixel). The
     66 build-dependent value <var>QuantumRange</var> is the maximum integral
     67 value which may be stored, per pixel, in the red, green, or blue channels of
     68 the image. Each image pixel may also optionally (if the image matte channel is
     69 enabled) have an associated level of opacity, ranging from <var>opaque</var> to
     70 <var>transparent</var>, which may be used to determine the influence of the pixel
     71 color when compositing the pixel with another image pixel. If the image matte
     72 channel is disabled, then all pixels in the image are treated as opaque. The
     73 color of an opaque pixel is fully visible while the color of a transparent
     74 pixel color is entirely absent (pixel color is ignored).</p>
     75 
     76 <p>By definition, raster images have a rectangular shape. All image rows are of
     77 equal length, as are all image columns. By treating the alpha channel as a
     78 visual "mask" the rectangular image may be given a "shape" by treating the
     79 alpha channel as a cookie-cutter for the image. This is done by setting the
     80 pixels within the shape to be opaque, with pixels outside the shape set as
     81 transparent. Pixels on the boundary of the shape may be between opaque and
     82 transparent in order to provide antialiasing (visually smooth edges). The
     83 description of the composition operators use this concept of image "shape" in
     84 order to make the description of the operators easier to understand. While it
     85 is convenient to describe the operators in terms of "shapes" they are by no
     86 means limited to mask-style operations since they are based on continuous
     87 floating-point mathematics rather than simple boolean operations.</p>
     88 
     89 <p>The following alpha blending (Duff-Porter) compose methods are available:</p>
     90 
     91 <table class="table table-condensed table-striped">
     92   <tbody>
     93   <tr>
     94     <th align="left" style="width: 8%">Method</th>
     95     <th align="left">Description</th>
     96   </tr>
     97 
     98   <tr>
     99     <td>clear</td>
    100     <td>Both the color and the alpha of the destination are
    101         cleared. Neither the source nor the destination are used (except for
    102         destinations size and other meta-data which is always preserved.</td>
    103   </tr>
    104 
    105   <tr>
    106     <td>src</td>
    107     <td>The source is copied to the destination. The destination
    108         is not used as input, though it is cleared.</td>
    109   </tr>
    110 
    111   <tr>
    112     <td>dst</td>
    113     <td>The destination is left untouched. The source image is
    114         completely ignored.</td>
    115   </tr>
    116 
    117   <tr>
    118     <td>src-over</td>
    119     <td>The source is composited over the destination. this is
    120        the default alpha blending compose method, when neither the compose
    121        setting is set, nor is set in the image meta-data.</td>
    122   </tr>
    123 
    124   <tr>
    125     <td>dst-over</td>
    126     <td>The destination is composited over the source and the
    127         result replaces the destination.</td>
    128   </tr>
    129 
    130   <tr>
    131     <td>src-in</td>
    132     <td>The part of the source lying inside of the destination
    133         replaces the destination.</td>
    134   </tr>
    135 
    136   <tr>
    137     <td>dst-in</td>
    138     <td>The part of the destination lying inside of the source
    139         replaces the destination. Areas not overlaid are cleared.</td>
    140   </tr>
    141 
    142   <tr>
    143     <td>src-out</td>
    144     <td>The part of the source lying outside of the destination
    145         replaces the destination.</td>
    146   </tr>
    147 
    148   <tr>
    149     <td>dst-out</td>
    150     <td>The part of the destination lying outside of the source
    151         replaces the destination.</td>
    152   </tr>
    153 
    154   <tr>
    155     <td>src-atop</td>
    156     <td>The part of the source lying inside of the destination is
    157         composited onto the destination.</td>
    158   </tr>
    159 
    160   <tr>
    161     <td>dst-atop</td>
    162     <td>The part of the destination lying inside of the source is
    163         composited over the source and replaces the destination. Areas not
    164         overlaid are cleared. </td>
    165   </tr>
    166 
    167   <tr>
    168     <td>xor</td>
    169     <td>The part of the source that lies outside of the
    170         destination is combined with the part of the destination that lies
    171         outside of the source.  Source or Destination, but not both. </td>
    172   </tr>
    173 
    174   </tbody>
    175 </table>
    176 
    177 <p>Any of the 'Src-*' methods can also be specified without the 'Src-' part.
    178 For example the default compose method can be specified as just 'Over'.</p>
    179 
    180 <p>Many of these compose methods will clear the destination image which was
    181 not overlaid by the source image.  This is to be expected as part of that
    182 specific composition methods defintion. You can disable this by setting the
    183 special <a href="command-line-options.php#define"
    184 >-define</a> 'compose:outside-overlay' to a value of 'false' will turn off
    185 this behavior. </p>
    186 
    187 <p>On top of the above 12 Duff-Porter Alpha Composition methods, one special
    188 related method '<code>Copy</code>' has been provided. This is equivalent to
    189 using the '<code>Src</code>'  with the special <a href="command-line-options.php#define"
    190 >-define</a> option '<code>compose:outside-overlay</code>' set to
    191 '<code>false</code>', so as to only modify the overlaid area, without clearing
    192 the rest of the image outside the overlaid area.  </p>
    193 
    194 <p>The following mathematical composition methods are also available. </p>
    195 
    196 <table class="table table-condensed table-striped">
    197   <tbody>
    198   <tr>
    199     <th align="left" style="width: 8%">Method</th>
    200     <th align="left">Description</th>
    201   </tr>
    202 
    203   <tr>
    204     <td>multiply</td>
    205     <td>The source is multiplied by the destination and replaces
    206         the destination. The resultant color is always at least as dark as
    207         either of the two constituent colors. Multiplying any color with black
    208         produces black. Multiplying any color with white leaves the original
    209         color unchanged.</td>
    210   </tr>
    211 
    212   <tr>
    213     <td>screen</td>
    214     <td>The source and destination are complemented and then
    215         multiplied and then replace the destination. The resultant color is
    216         always at least as light as either of the two constituent colors.
    217         Screening any color with white produces white. Screening any color
    218         with black leaves the original color unchanged.</td>
    219   </tr>
    220 
    221   <tr>
    222     <td>plus</td>
    223     <td>The source is added to the destination and replaces the
    224         destination. This operator is useful for averaging or a controlled
    225         merger of two images, rather than a direct overlay.</td>
    226   </tr>
    227 
    228   <tr>
    229     <td>add</td>
    230     <td>As per 'plus' but transparency data is treated as matte
    231         values. As such any transparent areas in either image remain
    232         transparent. </td>
    233   </tr>
    234 
    235   <tr>
    236     <td>minus</td>
    237     <td>Subtract the colors in the source image from the
    238         destination image. When transparency is involved, opaque areas is
    239         subtracted from any destination opaque areas. </td>
    240   </tr>
    241 
    242   <tr>
    243     <td>subtract</td>
    244     <td>Subtract the colors in the source image from the
    245         destination image. When transparency is involved transparent areas are
    246         subtracted, so only the opaque areas in the source remain opaque in
    247         the destination image. </td>
    248   </tr>
    249 
    250   <tr>
    251     <td>difference</td>
    252     <td>Subtracts the darker of the two constituent colors from
    253         the lighter. Painting with white inverts the destination color.
    254         Painting with black produces no change.</td>
    255   </tr>
    256 
    257   <tr>
    258     <td>exclusion</td>
    259     <td>Produces an effect similar to that of 'difference', but
    260         appears as lower contrast.  Painting with white inverts the
    261         destination color. Painting with black produces no change.</td>
    262   </tr>
    263 
    264   <tr>
    265     <td>darken</td>
    266     <td>Selects the darker of the destination and source colors.
    267         The destination is replaced with the source when the source is darker,
    268         otherwise it is left unchanged.</td>
    269   </tr>
    270 
    271   <tr>
    272     <td>lighten</td>
    273     <td>Selects the lighter of the destination and source colors.
    274         The destination is replaced with the source when the source is
    275         lighter, otherwise it is left unchanged. </td>
    276   </tr>
    277 
    278   </tbody>
    279 </table>
    280 
    281 <p>Typically these use the default 'Over' alpha blending when transparencies
    282 are also involved, except for 'Plus' which uses a 'plus' alpha blending.  This
    283 means the alpha channel  of both images will only be used to ensure that any
    284 visible input remains visible even in parts not overlaid. It also means that
    285 any values are weighted by the alpha channel of the input and output images.
    286 This 'Over' alpha blending is also applied to the lighting composition methods
    287 below. </p>
    288 
    289 <p>As of IM v6.6.1-6, if the special '<code>Sync</code>' flag is not specified
    290 (enabled by default) with the <a href="command-line-options.php#channel"
    291 >-channel</a> setting, then the above mathematical compositions will nolonger
    292 synchronise its actions with the alpha channel.  Instead the math composition
    293 will be applied on an individual channel basis as defined by the <a
    294 href="command-line-options.php#channel"
    295 >-channel</a>.  This includes the alpha channel. This special usage
    296 allows you to perform true mathematics of the image channels, without alpha
    297 composition effects, becoming involved. </p>
    298 
    299 <p>This special flag is not applied to the lighting composition methods (see
    300 below) even though they are closely related to mathematical composition
    301 methods.</p>
    302 
    303 <p>The following lighting composition methods are also available. </p>
    304 
    305 <table class="table table-condensed table-striped">
    306   <tbody>
    307   <tr>
    308     <th align="left" style="width: 8%">Method</th>
    309     <th align="left">Description</th>
    310   </tr>
    311 
    312   <tr>
    313     <td>linear-dodge</td>
    314     <td>This is equivalent to 'Plus' in that the color channels
    315         are simply added, however it does not 'Plus' the alpha channel, but
    316         uses the normal 'Over' alpha blending, which transparencies are
    317         involved.  Produces a sort of additive multiply-like result. Added
    318         ImageMagick version 6.5.4-3. </td>
    319   </tr>
    320 
    321   <tr>
    322     <td>linear-burn</td>
    323     <td>As 'Linear-Dodge', but also subtract one from the result.
    324         Sort of a additive 'Screen' of the images.  Added ImageMagick version
    325         6.5.4-3. </td>
    326   </tr>
    327 
    328   <tr>
    329     <td>color-dodge</td>
    330     <td>Brightens the destination color to reflect the source
    331         color. Painting with black produces no change.</td>
    332   </tr>
    333 
    334   <tr>
    335     <td>color-burn</td>
    336     <td>Darkens the destination color to reflect the source
    337         color.  Painting with white produces no change. Fixed in ImageMagick
    338         version 6.5.4-3. </td>
    339   </tr>
    340 
    341   <tr>
    342     <td>overlay</td>
    343     <td>Multiplies or screens the colors, dependent on the
    344         destination color. Source colors overlay the destination whilst
    345         preserving its highlights and shadows. The destination color is not
    346         replaced, but is mixed with the source color to reflect the lightness
    347         or darkness of the destination.</td>
    348   </tr>
    349 
    350   <tr>
    351     <td>hard-light</td>
    352     <td>Multiplies or screens the colors, dependent on the source
    353         color value. If the source color is lighter than 0.5, the destination
    354         is lightened as if it were screened. If the source color is darker
    355         than 0.5, the destination is darkened, as if it were multiplied. The
    356         degree of lightening or darkening is proportional to the difference
    357         between the source color and 0.5. If it is equal to 0.5 the
    358         destination is unchanged.  Painting with pure black or white produces
    359         black or white.</td>
    360   </tr>
    361 
    362 
    363   <tr>
    364     <td>linear-light</td>
    365     <td>Like 'Hard-Light' but using linear-dodge and linear-burn
    366         instead.  Increases contrast slightly with an impact on the
    367         foreground's tonal values.</td>
    368   </tr>
    369 
    370   <tr>
    371     <td>soft-light</td>
    372     <td>Darkens or lightens the colors, dependent on the source
    373         color value. If the source color is lighter than 0.5, the destination
    374         is lightened. If the source color is darker than 0.5, the destination
    375         is darkened, as if it were burned in. The degree of darkening or
    376         lightening is proportional to the difference between the source color
    377         and 0.5. If it is equal to 0.5, the destination is unchanged. Painting
    378         with pure black or white produces a distinctly darker or lighter area,
    379         but does not result in pure black or white. Fixed in ImageMagick
    380         version 6.5.4-3. </td>
    381   </tr>
    382 
    383   <tr>
    384     <td>pegtop-light</td>
    385     <td>Almost equivalent to 'Soft-Light', but using a
    386         continuous mathematical formula rather than two conditionally
    387         selected formulae. Added ImageMagick version 6.5.4-3. </td>
    388   </tr>
    389 
    390   <tr>
    391     <td>vivid-light</td>
    392     <td>A modified 'Linear-Light' designed to preserve very stong
    393         primary and secondary colors in the image. Added ImageMagick version
    394         6.5.4-3. </td>
    395   </tr>
    396 
    397   <tr>
    398     <td>pin-light</td>
    399     <td>Similar to 'Hard-Light', but using sharp linear shadings,
    400         to simulate the effects of a strong 'pinhole' light source. Added
    401         ImageMagick version 6.5.4-3. </td>
    402   </tr>
    403 
    404   </tbody>
    405 </table>
    406 
    407 <p>Also included are these special purpose compose methods:</p>
    408 
    409 <table class="table table-condensed table-striped">
    410   <tbody>
    411   <tr>
    412     <th align="left" style="width: 8%">Method</th>
    413     <th align="left">Description</th>
    414   </tr>
    415 
    416   <tr>
    417     <td>copy</td>
    418     <td>This is equivalent to the Duff-Porter composition method
    419         '<code>Src,</code>' but without clearing the parts of the destination
    420         image that is not overlaid.  </td>
    421     </tr>
    422 
    423   <tr>
    424     <td>copy-*</td>
    425     <td>Copy the specified channel (Red, Green, Blue, Cyan,
    426         Magenta, Yellow, Black, or Opacity) in the source image to the
    427         same channel in the destination image.  If the channel specified
    428         does not exist in the source image, (which can only happen for methods,
    429         '<code>copy-opacity</code>' or '<code>copy-black</code>') then it is
    430         assumed that the source image is a special grayscale channel image
    431         of the values that is to be copied. </td>
    432     </tr>
    433 
    434   <tr>
    435     <td>change-mask</td>
    436     <td>Replace any destination pixel that is the similar to the
    437     source images pixel (as defined by the current <a
    438     href="command-line-options.php#fuzz">-fuzz</a> factor), with transparency.
    439     </td>
    440   </tr>
    441   </tbody>
    442 </table>
    443 
    444 <p>On top of these composed methods are a few special ones that not only require
    445 the two images that are being merged or overlaid, but have some extra numerical
    446 arguments, which are tabled below. </p>
    447 
    448 <p>In the "<code>composite</code>" command these composition methods are
    449 selected using special options with the arguments needed. They are usually,
    450 but not always, the same name as the composite 'method' they use, and replaces
    451 the normal use of the <a href="command-line-options.php#compose" >-compose</a>
    452 setting in the "<code>composite</code>" command.  For example... </p>
    453 
    454 <pre>
    455 composite ... -blend 50x50 ...
    456 </pre>
    457 
    458 <p>As of IM v6.5.3-4 the "<code>convert</code>" command can now also supply
    459 these extra arguments to its <a href="command-line-options.php#composite"
    460 >-composite</a> operator, using the special <a href="command-line-options.php#define">-define</a>
    461 attribute of '<code class="arg">compose:args</code>'.  This means you can now
    462 make use of these special augmented <a href="command-line-options.php#compose"
    463 >-compose</a> methods, those the argument and the method both need to be set
    464 separately.  For example... </p>
    465 
    466 <pre>
    467 convert ... -compose blend  -define compose:args=50,50 -composite ...
    468 </pre>
    469 
    470 <p>The following is a table of these special 'argumented' compose methods,
    471 with a brief summary of what they do. For more details see the equivalent
    472 "composite" command option name.  </p>
    473 
    474 <table class="table table-condensed table-striped">
    475   <tbody>
    476   <tr>
    477     <th align="left" style="width: 8%">Method</th>
    478     <th align="left">Description</th>
    479   </tr>
    480 
    481   <tr>
    482     <td>dissolve</td>
    483     <td>Arguments:
    484         <var>src_percent</var>[x<var>dst_percent</var>]
    485     <br/>Equivalent to "<code>composite</code>" <a href="command-line-options.php#dissolve">-dissolve</a>
    486     <br/>Dissolve the 'source' image by the percentage given before overlaying
    487         'over' the 'destination' image. If <var>src_percent</var> is
    488         greater than 100, it starts dissolving the main image so it will
    489         become transparent at a value of '<code class="arg">200</code>'.  If
    490         both percentages are given, each image are dissolved to the
    491         percentages given.
    492     </td>
    493   </tr>
    494 
    495   <tr>
    496     <td>blend</td>
    497     <td>Arguments:
    498         <var>src_percent</var>[x<var>dst_percent</var>]
    499     <br/>Equivalent to "<code>composite</code>" <a
    500         href="command-line-options.php#blend">-blend</a>
    501     <br/>Average the images together ('plus') according to the percentages
    502         given and each pixels transparency.  If only a single percentage value
    503         is given it sets the weight of the composite or 'source' image, while
    504         the background image is weighted by the exact opposite amount. That is
    505         a <code>-blend 30</code> merges 30% of the 'source' image with 70% of
    506         the 'destination' image.  Thus it is equivalent to <code>-blend
    507         30x70</code>.
    508     </td>
    509   </tr>
    510 
    511   <tr>
    512     <td>mathematics</td>
    513     <td>Arguments: <var>A, B, C, D</var>
    514     <br/>Not available in "<code>composite</code>" at this time.
    515     <br/>Merge the source and destination images according to the formula
    516     <br/>     <code>A*Sc*Dc + B*Sc + C*Dc + D</code>
    517     <br/>Can be used to generate a custom composition method that would
    518         otherwise need to be implemented using the slow <a
    519         href="command-line-options.php#fx">-fx</a> DIY image operator.   Added
    520         to ImageMagick version 6.5.4-3.
    521     <br/>As of IM v6.6.1-6 this method will do per-channel math compositions
    522         if the 'Sync' flag is removed from <a
    523         href="command-line-options.php#channel" >-channel</a>, just like all
    524         the other mathematical composition methods above.
    525     </td>
    526   </tr>
    527 
    528   <tr>
    529     <td>modulate</td>
    530     <td>Arguments:
    531         <var>brightness</var>[x<var>saturation</var>]
    532     <br/>Equivalent to "<code>composite</code>" <a href="command-line-options.php#watermark">-watermark</a>
    533     <br/>Take a grayscale image (with alpha mask) and modify the destination
    534         image's brightness according to watermark image's grayscale value and
    535         the <var>brightness</var> percentage.  The destinations
    536         color saturation attribute is just direct modified by the <var>saturation</var> percentage, which defaults to 100 percent
    537         (no color change).
    538 
    539     </td>
    540   </tr>
    541 
    542   <tr>
    543     <td>displace</td>
    544     <td>Arguments:
    545         <var>X-scale</var>[x<var>Y-scale</var>][!][%]
    546     <br/>Equivalent to "<code>composite</code>" <a href="command-line-options.php#displace">-displace</a>
    547     <br/>With this option, the 'overlay' image, and optionally the 'mask'
    548         image, is used as a relative displacement map, which is used to
    549         displace the lookup of what part of the destination image is seen at
    550         each point of the overlaid area.  Much like the displacement map is a
    551         'lens' that distorts the original 'background' image behind it.
    552     <br/><br/>
    553         The X-scale is modulated by the 'red' channel of the overlay image
    554         while the Y-scale is modulated by the green channel, (the mask image
    555         if given is rolled into green channel of the overlay image. This
    556         separation allows you to modulate the X and Y lookup displacement
    557         separately allowing you to do 2-dimensional displacements, rather
    558         than 1-dimensional vectored displacements (using grayscale image).
    559     <br/><br/>
    560         If the overlay image contains transparency this is used as a mask
    561         of the resulting image to remove 'invalid' pixels.
    562     <br/><br/>
    563         The '%' flag makes the displacement scale relative to the size of the
    564         overlay image (100% = half width/height of image). Using '!' switches
    565         percentage arguments to refer to the destination image size instead.
    566     <br/><br/>
    567         Special flags were added Added to ImageMagick version 6.5.3-5.
    568     </td>
    569   </tr>
    570 
    571   <tr>
    572     <td>distort</td>
    573     <td>Arguments:
    574         <var>X-scale</var>[x<var>Y-scale</var>[+<var>X-center</var>+<var>Y-center</var>]][!][%]
    575     <br/>Not available in "<code>composite</code>" at this time.
    576     <br/>Exactly as per 'Displace' (above), but using absolute coordinates,
    577         relative to the center of the overlay (or that given).  Basically
    578         allows you to generate absolute distortion maps where 'black' will
    579         look up the left/top edge, and 'white' looks up the bottom/right
    580         edge of the destination image, according to the scale given.
    581     <br/><br/>
    582         The '!' flag not only switches percentage scaling, to use the
    583         destination image, but also the image the center offset of the lookup.
    584         This means the overlay can lookup a completely different region of the
    585         destination image.
    586     <br/><br/>
    587         Added to ImageMagick version 6.5.3-5.
    588     </td>
    589   </tr>
    590 
    591   <tr>
    592     <td>blur</td>
    593     <td>Arguments:
    594         <var>Width</var>[x<var>Height</var>[+<var>Angle</var>][+<var>Angle2</var>]]
    595     <br/>Equivalent to "<code>composite</code>" <a href="command-line-options.php#blur-composite">-blur</a>
    596     <br/>A Variable Blur Mapping Composition method, where each pixel in the
    597         overlaid region is replaced with an Elliptical Weighted Average (EWA),
    598         with an ellipse (typically a circle) of the given sigma size, scaled
    599         according to overlay (source image) grayscale mapping.
    600     <br/><br/>
    601         As per 'Displace' and 'Distort', the red channel will modulate the
    602         width of the ellipse, while the green channel will modulate the height
    603         of the ellipse. If a single Angle value is given in the arguments,
    604         then the ellipse will then be rotated by the angle specified.
    605     <br/><br/>
    606         Normally the blue channel of the mapping overlay image is ignored.
    607         However if a second ellipse angle is given, then it is assumed that
    608         the blue channel defines a variable angle for the ellipse ranging from
    609         the first angle to the second angle given.  This allows to generate
    610         radial blurs, or a rough approximation for rotational blur. Or any mix
    611         of the two.
    612     <br/><br/>
    613         Added to ImageMagick version 6.5.4-0.
    614     </td>
    615   </tr>
    616 
    617   </tbody>
    618 </table>
    619 
    620 <p>To print a complete list of all the available compose operators, use <a
    621 href="command-line-options.php#list">-list compose</a>.</p>
    622 </div>
    623   <footer class="magick-footer">
    624     <p><a href="support.php">Donate</a> 
    625      <a href="sitemap.php">Sitemap</a> 
    626     <a href="links.php">Related</a> 
    627     <a href="architecture.php">Architecture</a>
    628 </p>
    629     <p><a href="compose.php#">Back to top</a> 
    630     <a href="http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x89AB63D48277377A">Public Key</a> 
    631     <a href="contact.php">Contact Us</a></p>
    632         <p><small>  1999-2016 ImageMagick Studio LLC</small></p>
    633   </footer>
    634 </div><!-- /.container -->
    635 
    636   <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    637   <script src="http://nextgen.imagemagick.org/js/magick.php"></script>
    638 </div>
    639 </body>
    640 </html>
    641