antoine 2003/08/25 08:58:38
Modified: docs/manual/OptionalTasks image.html
Log:
Add example supplied by Rob Oxspring
Revision Changes Path
1.3 +14 -3 ant/docs/manual/OptionalTasks/image.html
Index: image.html
===================================================================
RCS file: /home/cvs/ant/docs/manual/OptionalTasks/image.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- image.html 22 Aug 2003 09:20:56 -0000 1.2
+++ image.html 25 Aug 2003 15:58:38 -0000 1.3
@@ -146,7 +146,7 @@
<li>"cover" - keep proportions and fit in the supplied
dimensions.</li>
<li>"fit" - keep proportions and cover the supplied
dimensions.</li>
</ul></td>
-+ <td align="center"> no (defaults to <i>ignore</i>) </td>
+ <td align="center"> no (defaults to <i>ignore</i>) </td>
<tr>
<td valign="top"> width </td>
<td valign="top"> Sets the width of the image, either as an integer or a
%. </td>
@@ -186,8 +186,19 @@
<h3>Examples</h3>
<blockquote><pre>
+ <image destdir="samples/low" overwrite="yes">
+ <fileset dir="samples/full">
+ <include
name="**/*.jpg"/>
+ </fileset>
+ <scale width="160" height="160"
proportions="fit"/>
+ </image>
+</pre></blockquote>
+<p>Create thumbnails of my images and make sure they all fit within the
160x160 size whether the
+image is portrait or landscape.</p>
+
+<blockquote><pre>
<image srcdir="src" includes="*.png">
- <scale keepproportions="true" width="40"/>
+ <scale proportions="width" width="40"/>
</image>
</pre></blockquote>
<p>Creates a thumbnail for all PNG-files in <i>src</i> in the size of 40
pixel keeping the proportions
@@ -195,7 +206,7 @@
<blockquote><pre>
<image srcdir="src" destdir="dest" includes="*.png">
- <scale keepproportions="true" width="40"/>
+ <scale proportions="width" width="40"/>
</image>
</pre></blockquote>
<p>Same as above but stores the result in <i>dest</i>.</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]