Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 7991

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Changes the size of an image</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.thresholdimage.html">Imagick::thresholdImage</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.tintimage.html">Imagick::tintImage</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="imagick.thumbnailimage" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Imagick::thumbnailImage</h1>
  <p class="verinfo">(PECL imagick 2.0.0)</p><p class="refpurpose"><span class="refname">Imagick::thumbnailImage</span> &mdash; <span class="dc-title">Changes the size of an image</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-imagick.thumbnailimage-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">bool</span> <span class="methodname"><strong>Imagick::thumbnailImage</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$columns</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$rows</code></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$bestfit</code><span class="initializer"> = false</span></span>
   [, <span class="methodparam"><span class="type">bool</span> <code class="parameter">$fill</code><span class="initializer"> = false</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Changes the size of an image to the given dimensions and removes any
   associated profiles. The goal is to produce small low cost thumbnail
   images suited for display on the Web. 

   If <strong><code>TRUE</code></strong> is given as a third parameter then columns and rows parameters
   are used as maximums for each side. Both sides will be scaled down until
   the match or are smaller than the parameter given for the side.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
 <span class="simpara">
  The behavior of the parameter <em><code class="parameter">bestfit</code></em> changed in Imagick 3.0.0.
  Before this version given dimensions 400x400 an image of dimensions 200x150 would be
  left untouched. In Imagick 3.0.0 and later the image would be scaled up to size 400x300 as
  this is the &quot;best fit&quot; for the given dimensions. If <em><code class="parameter">bestfit</code></em>
  parameter is used both width and height must be given.
 </span>
</p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-imagick.thumbnailimage-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">columns</code></em></span>
     <dd>

      <p class="para">
      Image width
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">rows</code></em></span>
     <dd>

      <p class="para">
      Image height
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">bestfit</code></em></span>
     <dd>

      <p class="para">
      Whether to force maximum values
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-imagick.thumbnailimage-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <strong><code>TRUE</code></strong> on success.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-imagick.thumbnailimage-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   Throws ImagickException on error.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="imagick.thresholdimage.html">Imagick::thresholdImage</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="imagick.tintimage.html">Imagick::tintImage</a></div>
 <div class="up"><a href="class.imagick.html">Imagick</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>