From eda63287a3447c7fcbde3dfc46a37ca731500353 Mon Sep 17 00:00:00 2001 From: Antoine Levy-Lambert Date: Mon, 25 Aug 2003 15:58:38 +0000 Subject: [PATCH] Add example supplied by Rob Oxspring git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275140 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/OptionalTasks/image.html | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/manual/OptionalTasks/image.html b/docs/manual/OptionalTasks/image.html index 014a29182..716797821 100644 --- a/docs/manual/OptionalTasks/image.html +++ b/docs/manual/OptionalTasks/image.html @@ -146,7 +146,7 @@ ImageOperation can handle nested Rotate, Draw, Rectangle, Text and Scale objects
  • "cover" - keep proportions and fit in the supplied dimensions.
  • "fit" - keep proportions and cover the supplied dimensions.
  • -+ no (defaults to ignore) + no (defaults to ignore) width Sets the width of the image, either as an integer or a %. @@ -185,9 +185,20 @@ nested inside the Draw object.

    Examples

    +
    + <image destdir="samples/low" overwrite="yes">
    +     <fileset dir="samples/full">
    +         <include name="**/*.jpg"/>
    +     </fileset>
    +     <scale width="160" height="160" proportions="fit"/>
    + </image>
    +
    +

    Create thumbnails of my images and make sure they all fit within the 160x160 size whether the +image is portrait or landscape.

    +
     <image srcdir="src" includes="*.png">
    -    <scale keepproportions="true" width="40"/>
    +    <scale proportions="width" width="40"/>
     </image>
     

    Creates a thumbnail for all PNG-files in src in the size of 40 pixel keeping the proportions @@ -195,7 +206,7 @@ and stores the src.

     <image srcdir="src" destdir="dest" includes="*.png">
    -    <scale keepproportions="true" width="40"/>
    +    <scale proportions="width" width="40"/>
     </image>
     

    Same as above but stores the result in dest.