<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.imagick.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'imagick.liquidrescaleimage.php',
    1 => 'Imagick::liquidRescaleImage',
    2 => 'Animates an image or images',
  ),
  'up' => 
  array (
    0 => 'class.imagick.php',
    1 => 'Imagick',
  ),
  'prev' => 
  array (
    0 => 'imagick.linearstretchimage.php',
    1 => 'Imagick::linearStretchImage',
  ),
  'next' => 
  array (
    0 => 'imagick.listregistry.php',
    1 => 'Imagick::listRegistry',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imagick/imagick/liquidrescaleimage.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="imagick.liquidrescaleimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::liquidRescaleImage</h1>
  <p class="verinfo">(PECL imagick 2 &gt;= 2.2.0, PECL imagick 3)</p><p class="refpurpose"><span class="refname">Imagick::liquidRescaleImage</span> &mdash; <span class="dc-title">Animates an image or images</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.liquidrescaleimage-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Imagick::liquidRescaleImage</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$width</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$height</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$delta_x</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$rigidity</code></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>


  <p class="para rdfs-comment">
   This method scales the images using liquid rescaling method. This method
   is an implementation of a technique called seam carving. In order for this
   method to work as expected ImageMagick must be compiled with liblqr support.
   This method is available if Imagick has been compiled against ImageMagick version 6.3.9 or newer.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.liquidrescaleimage-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">width</code></dt>
     <dd>
      <p class="para">
       The width of the target size
      </p>
     </dd>
    
    
     <dt><code class="parameter">height</code></dt>
     <dd>
      <p class="para">
       The height of the target size
      </p>
     </dd>
    
    
     <dt><code class="parameter">delta_x</code></dt>
     <dd>
      <p class="para">
       How much the seam can traverse on x-axis. 
       Passing 0 causes the seams to be straight.
      </p>
     </dd>
    
    
     <dt><code class="parameter">rigidity</code></dt>
     <dd>
      <p class="para">
       Introduces a bias for non-straight seams. This parameter is 
       typically 0.
      </p>
     </dd>
    
   </dl>
  </p>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-imagick.liquidrescaleimage-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-imagick.liquidrescaleimage-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="imagick.resizeimage.php" class="function" rel="rdfs-seeAlso">Imagick::resizeImage()</a> - Scales an image</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>