"Fossies" - the Fresh Open Source Software Archive

Member "MagickStudio-1.9.6/Resize.html" (14 Feb 2021, 4424 Bytes) of package /linux/www/MagickStudio-1.9.6.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3 <html xmlns="http://www.w3.org/1999/xhtml">
    4 <head>
    5 <meta content="HTML Tidy for Linux/x86 (vers 1st March 2003), see www.w3.org"
    6       name="generator" />
    7 <title>Resize Image</title>
    8 <link rel="StyleSheet" href="style/magick.css" type="text/css" />
    9 </head>
   10 <body bgcolor="#FFFFFF" text="#000000" link="#0085C0"
   11 vlink="#800080" alink="#0085C0">
   12 <center><img src="images/magick.png" align="bottom" width="114"
   13 height="113" /></center>
   14 <hr />
   15 <p>The image geometry specifies the desired size of the image. It's
   16 format is:</p>
   17 <pre class="text">
   18   <i>&lt;width&gt;x&lt;height&gt;{%}{!}{&lt;}{&gt;}</i>
   19 </pre>
   20 <p>By default, the width and height are maximum values. That is,
   21 the image is expanded or contracted to fit the width and height
   22 value while maintaining the aspect ratio of the image. <em>Append
   23 an exclamation point to the geometry to force the image size to
   24 exactly the size you specify</em>. For example, if you specify
   25 <b>640x480!</b> the image width is set to 640 pixels and height to
   26 480. If only one factor is specified, both the width and height
   27 assume the value.</p>
   28 <p>To specify a percentage width or height instead, append %. The
   29 image size is multiplied by the width and height percentages to
   30 obtain the final image dimensions. To increase the size of an
   31 image, use a value greater than 100 (e.g. 125%). To decrease an
   32 image's size, use a percentage less than 100.</p>
   33 <p>Use <b>&gt;</b> to change the dimensions of the image
   34 <em>only</em> if its size exceeds the geometry specification.
   35 <b>&lt;</b> resizes the image <em>only</em> if its dimensions is
   36 less than the geometry specification. For example, if you specify
   37 <b>640x480&gt;</b> and the image size is 512x512, the image size
   38 does not change. However, if the image is 1024x1024, it is resized
   39 to 640x480.</p>
   40 <p>Use <b>&lt;</b> to change the dimensions of the image
   41 <em>only</em> if its size exceeds the geometry specification.
   42 <b>&gt;</b> resizes the image <em>only</em> if its dimensions is
   43 less than the geometry specification. For example, if you specify
   44 <b>640x480&gt;</b> and the image size is 512x512, the image size
   45 does not change. However, if the image is 1024x1024, it is resized
   46 to 640x480.</p>
   47 <p>There are 72 dots per inch in PostScript coordinates.</p>
   48 <p>You have your choice of algorithms to resize your image. Choose
   49 from these algorithms:</p>
   50 <dl>
   51 <dd>
   52 <dl>
   53 <dt><b>Adaptive Resize</b></dt>
   54 <dd>resize image with data dependent triangulation</dd><br />
   55 <dt><b>Liquid Rescale</b></dt>
   56 <dd>rescale image with seam carving.</dd><br />
   57 <dt><b>Resize</b></dt>
   58 <dd>scale the image using the selected scaling filter, support radius, and blur factor. The default
   59 is the <em>Mitchell</em> filter, general overall scaling filter
   60 that produces high-quality results. Set the blur factor to &gt; 1.0 for more blurry and &lt; 1.0 for more sharp</dd><br />
   61 <dt><b>Scale</b></dt>
   62 <dd>To scale a scanline from x pixels to y pixels, each new pixel
   63 represents x/y old pixels. To read x/y pixels, read (x/y rounded
   64 up) pixels but only count the required fraction of the last old
   65 pixel read in your new pixel. The remainder of the old pixel will
   66 be counted in the next new pixel.</dd><br />
   67 <dt><b>Sample</b></dt>
   68 <dd>scales image with pixel sampling. This algorithm does no
   69 introduce new colors into your image.</dd><br />
   70 <dt><b>Resample</b></dt>
   71 <dd>change the resolution of an image</dd><br />
   72 <dt><b>Half Size</b></dt>
   73 <dd>half the size of an image using a weighted average of a 4x4
   74 cell centered at each reference pixel. The image geometry is
   75 ignored.</dd><br />
   76 <dt><b>Double Size</b></dt>
   77 <dd>double the size of an image using bi-linear interpolation. The
   78 image</dd><br />
   79 <dt><b>Extent</b></dt>
   80 <dd>set the image extent. The pixels scale or location do not change.  If the image is enlarged, unfilled areas are set to the background color.</dd><br />
   81 <dt><b>Thumbnail</b></dt>
   82 <dd>Create a thumbnail from your image. If there are more than one
   83 image, they are tiled on a transparent background as defined by the
   84 tile geometry (see the optional scaling
   85 attributes).</dd><br /></dl></dd><br /></dl>
   86 <hr />
   87 <p>
   88 <a href="scripts/MagickStudio.cgi/?Action=mogrify&amp;ToolType=Comment&amp;SessionID=null&amp;Path=null"
   89    target="Comment"><img alt="[comment]" src="images/mail.png"
   90    border="0" /></a></p>
   91 </body>
   92 </html>