home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>9.11.  Canvas Size</title> <link rel="stylesheet" href="gimp-help-plain.css" type="text/css" /> <link rel="stylesheet" href="gimp-help-screen.css" type="text/css" /> <link rel="stylesheet" href="gimp-help-custom.css" type="text/css" /> <link rel="alternate stylesheet" href="gimp22.css" type="text/css" title="gimp22" /> <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> <link rel="start" href="index.html" title="GNU Image Manipulation Program" /> <link rel="up" href="gimp-imagewindow-menus-image.html" title="9.  The “Image” Menu" /> <link rel="prev" href="plug-in-guillotine.html" title="9.10.  Guillotine" /> <link rel="next" href="gimp-image-fit-canvas-to-layers.html" title="9.12.  Fit Canvas to Layers" /> </head> <body> <div class="navheader"> <table width="100%" summary="Navigation header"> <tr> <th colspan="3" align="center">9.11.  <span lang="en" xml:lang="en">Canvas Size</span> </th> </tr> <tr> <td width="20%" align="left"><a accesskey="p" href="plug-in-guillotine.html"><img src="../images/prev.png" alt="Prev" /></a> </td> <th width="60%" align="center">9.  <span lang="en" xml:lang="en">The “<span class="quote">Image</span>” Menu</span> </th> <td width="20%" align="right"> <a accesskey="n" href="gimp-image-fit-canvas-to-layers.html"><img src="../images/next.png" alt="Next" /></a></td> </tr> </table> <hr /> </div> <div class="sect2" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h3 class="title"><a id="gimp-image-canvas-size"></a>9.11.  <span lang="en" xml:lang="en">Canvas Size</span> </h3> </div> <div> <div class="revhistory"> <table border="1" width="100%" summary="Revision history"> <tr> <th align="left" valign="top" colspan="3"> <b>Revision History</b> </th> </tr> <tr> <td align="left">Revision $Revision: 2416 $</td> <td align="left">2007-11-14</td> <td align="left">j.h</td> </tr> </table> </div> </div> </div> </div> <a id="id2698056" class="indexterm"></a> <a id="id2698070" class="indexterm"></a> <p> The “<span class="quote">canvas</span>” is the visible area of the image. By default the size of the canvas coincides with the size of the layers. The <span class="guimenuitem">Canvas Size</span> command lets you enlarge or reduce the canvas size. You can, if you want, modify the size of the layers. When you enlarge the canvas, you create free space around the contents of the image. When you reduce it, the visible area is cropped, however the layers still extend beyond the canvas border. </p> <p> When you reduce the canvas size, the new canvas appears surrounded with a thin negative border in the preview. The mouse pointer is a moving cross: click and drag to move the image against this frame. </p> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="id2698114"></a>9.11.1.  <span lang="en" xml:lang="en">Activate the Command</span> </h4> </div> </div> </div> <div class="itemizedlist"> <ul type="disc"> <li> <p> You can access this command from the image menubar through <span class="guimenu"><span class="accel">I</span>mage</span> → <span class="guimenuitem">Can<span class="accel">v</span>as Size</span>. </p> </li> </ul> </div> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="id2698164"></a>9.11.2.  <span lang="en" xml:lang="en"> Description of the “<span class="quote">Canvas size</span>” dialog </span> </h4> </div> </div> </div> <div class="figure"> <a id="id2698179"></a> <p class="title"> <b>Figure 15.72.  <span lang="en" xml:lang="en"> The “<span class="quote">Canvas size</span>” dialog </span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size.png" alt="The Canvas size dialog" /> </div> </div> </div> <br class="figure-break" /> <div class="variablelist"> <p class="title"> <b> <span lang="en" xml:lang="en">Canvas Size</span> </b> </p> <dl> <dt> <span class="term">Width; Height</span> </dt> <dd> <p> You can set the <span class="guilabel">Width</span> and the <span class="guilabel">Height</span> of the canvas. The default units are pixels but you can choose different units, e.g. percent, if you want to set the new dimensions relative to the current dimensions. If the Chain to the right of the Width and Height is not broken, both Width and Height keep the same relative size to each other. That is, if you change one of the values, the other one also changes a corresponding amount. If you break the Chain by clicking on it, you can set Width and Height separately. </p> <p> Whatever units you use, information about the size in pixels and the current resolution are always displayed below the <span class="emphasis"><em>Width</em></span> and <span class="emphasis"><em>Height</em></span> fields. You cannot change the resolution in the <span class="guimenu">Canvas Size</span> dialog; if you want to do that, use the <a class="link" href="gimp-image-print-size.html" title="9.13.  Print Size">Print Size dialog</a>. </p> </dd> </dl> </div> <div class="variablelist"> <p class="title"> <b> <span lang="en" xml:lang="en">Offset</span> </b> </p> <p> The <span class="guilabel">Offset</span> values are used to place the image on the canvas. You can see the size and the content of the canvas in the preview of the dialog window. When the canvas is smaller than the image, the preview window shows it in a frame with a thin negative border. You can also modify the offset by click-and-dragging on the preview. </p> <dl> <dt> <span class="term">X ; Y</span> </dt> <dd> <p> The <span class="guilabel">X</span> and <span class="guilabel">Y</span> parameters specify the coordinates of the upper left corner of the image relative to the upper left corner of the canvas. When the canvas is smaller than the image, the X and Y values are negative. You can change these values by using the text boxes. The default units are pixels, but you can choose different units. By clicking on the arrows next to the text boxes, you can move the image one pixel at a time. You can move the image ten pixels at a time by clicking on the arrows while pressing the <span class="keycap"><strong>Shift</strong></span> key. </p> </dd> <dt> <span class="term">Layers</span> </dt> <dd> <p> Before the GIMP-2.4 version, “<span class="quote">Canvas Size</span>” had no influence on layer size. To change it, you had to use the <a class="link" href="gimp-layer-resize.html" title="10.48.  Layer Boundary Size">Layer Boundary Size</a> command. The “<span class="quote">Layers</span>” option now allows you to specify how, possibly, layers will be resized. The drop-down list offers you several possibilities: </p> <div class="figure"> <a id="id2698407"></a> <p class="title"> <b>Figure 15.73.  <span lang="en" xml:lang="en">The Resize layers list</span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size-list.png" alt="The Resize layers list" /> </div> </div> </div> <br class="figure-break" /> <div class="itemizedlist"> <ul type="disc"> <li> <p> <span class="guilabel">None</span>: default option. No layer is resized, only the canvas is. </p> </li> <li> <p> <span class="guilabel">All Layers</span>: all layers are resized to canvas size. </p> </li> <li> <p> <span class="guilabel">Image-sized layers</span>: only layers with the same size as the image are sized to canvas size. </p> </li> <li> <p> <span class="guilabel">All visible layers</span>: only visible layers, marked with a <span class="guiicon"><img src="../images/dialogs/stock-eye-20.png" /> </span> icon, in the Layer Dialog, are sized to canvas size. </p> </li> <li> <p> <span class="guilabel">All linked layers</span>: only linked layers, marked with a <span class="guiicon"><img src="../images/dialogs/stock-vchain-24.png" /> </span> in the Layer Dialog, are sized to canvas size. </p> </li> </ul> </div> </dd> <dt> <span class="term">Center</span> </dt> <dd> <p> The <span class="guilabel">Center</span> button allows you to center the image on the canvas. When you click on the Center button, the offset values are automatically calculated and displayed in the text boxes. </p> </dd> </dl> </div> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Note]" src="../images/note.png" /> </td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p> When you click on the <span class="guilabel">Resize</span> button, the canvas is resized, but the pixel information and the drawing scale of the image are unchanged. </p> <p> If the layers of the image did not extend beyond the borders of the canvas before you changed its size, there are no layers on the part of the canvas that was added by resizing it. Therefore, this part of the canvas is transparent and displayed with a checkered pattern, and it is not immediately available for painting. You can either <a class="link" href="gimp-image-flatten.html" title="9.19.  Flatten Image">flatten</a> the image, in which case you will get an image with a single layer that fits the canvas exactly, or you can use the <a class="link" href="gimp-layer-resize-to-image.html" title="10.49.  Layer to Image Size">Layer to Image Size</a> command to resize only the active layer, without changing any other layers. You can also create a new layer and fill it with the background you want. By doing this, you create a digital “<span class="quote">passe-partout</span>” (a kind of glass mount with a removable back for slipping in a photograph). </p> </td> </tr> </table> </div> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="id2698628"></a>9.11.3.  <span lang="en" xml:lang="en">Example</span> </h4> </div> </div> </div> <div class="figure"> <a id="id2698641"></a> <p class="title"> <b>Figure 15.74.  <span lang="en" xml:lang="en">Original image</span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size-ex1.png" alt="Original image" /> <div class="caption"> <p> We started with a green background layer 100x100 pixels, which defines a default canvas with the same size. Then we added a new red layer 80x80 pixels. The active layer limits are marked with a black and yellow dotted line. The red layer does not fill the canvas completely: the unoccupied part is transparent. The background color in the Toolbox is yellow. </p> </div> </div> </div> </div> <br class="figure-break" /> <div class="figure"> <a id="id2698684"></a> <p class="title"> <b>Figure 15.75.  <span lang="en" xml:lang="en">Canvas enlarged (layers unchanged)</span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size-ex2.png" alt="Canvas enlarged (layers unchanged)" /> <div class="caption"> <p> The canvas has been enlarged to 120x120 pixels. The layers size remained unchanged. The unoccupied part of the canvas is transparent. </p> </div> </div> </div> </div> <br class="figure-break" /> <div class="figure"> <a id="id2698723"></a> <p class="title"> <b>Figure 15.76.  <span lang="en" xml:lang="en">Canvas enlarged (All layers changed)</span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size-ex3.png" alt="Canvas enlarged (All layers changed)" /> <div class="caption"> <p> The canvas has been enlarged to 120x120 pixels. All layers have been enlarged to the canvas size. The undrawn part is transparent in the red layer and yellow (background color in Toolbox) in the green background layer. </p> </div> </div> </div> </div> <br class="figure-break" /> </div> <div class="sect3" lang="en" xml:lang="en"> <div class="titlepage"> <div> <div> <h4 class="title"><a id="id2698765"></a>9.11.4.  <span lang="en" xml:lang="en">What's Canvas Size useful for?</span> </h4> </div> </div> </div> <p>You can use this command to crop an image:</p> <div class="figure"> <a id="id2698784"></a> <p class="title"> <b>Figure 15.77.  <span lang="en" xml:lang="en">Resizing canvas</span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size-ex4.png" alt="Resizing canvas" /> </div> </div> </div> <br class="figure-break" /> <p> Click on the chain next to Width and Height entries to unlink dimensions. By modifying these dimensions and moving image against canvas, by trial and error, you can crop the part of the image you want. Click on the Center button and then on the Resize button. </p> <div class="figure"> <a id="id2698822"></a> <p class="title"> <b>Figure 15.78.  <span lang="en" xml:lang="en">Cropped image</span> </b> </p> <div class="figure-contents"> <div class="mediaobject"> <img src="../images/menus/image-canvas-size-ex5.png" alt="Cropped image" /> </div> </div> </div> <br class="figure-break" /> <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"> <table border="0" summary="Note"> <tr> <td rowspan="2" align="center" valign="top" width="25"> <img alt="[Note]" src="../images/note.png" /> </td> <th align="left">Note</th> </tr> <tr> <td align="left" valign="top"> <p> The <a class="link" href="gimp-tool-crop.html" title="4.4.  Crop">Crop tool</a> is easier to use. </p> </td> </tr> </table> </div> </div> </div> <div class="navfooter"> <hr /> <table width="100%" summary="Navigation footer"> <tr> <td width="40%" align="left"><a accesskey="p" href="plug-in-guillotine.html"><img src="../images/prev.png" alt="Prev" /></a> </td> <td width="20%" align="center"> <a accesskey="u" href="gimp-imagewindow-menus-image.html"> <img src="../images/up.png" alt="Up" /> </a> </td> <td width="40%" align="right"> <a accesskey="n" href="gimp-image-fit-canvas-to-layers.html"><img src="../images/next.png" alt="Next" /></a></td> </tr> <tr> <td width="40%" align="left" valign="top"><a accesskey="p" href="plug-in-guillotine.html">9.10.  <span lang="en" xml:lang="en">Guillotine</span> </a> </td> <td width="20%" align="center"> <a accesskey="h" href="index.html"> <img src="../images/home.png" alt="Home" /> </a> </td> <td width="40%" align="right" valign="top"> <a accesskey="n" href="gimp-image-fit-canvas-to-layers.html">9.12.  <span lang="en" xml:lang="en">Fit Canvas to Layers</span> </a></td> </tr> </table> </div> </body> </html>