svn: /phpdoc/en/trunk/reference/imagick/ examples.xml
| From: | Mikko Koppanen | Date: | Sun, 09 Aug 2009 19:04:06 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/imagick/ examples.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4629@lists.php.net to get a copy of this message | ||
mkoppanen Sun, 09 Aug 2009 19:04:06 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286960
Log:
Added information about animated gifs
Changed paths:
U phpdoc/en/trunk/reference/imagick/examples.xml
Modified: phpdoc/en/trunk/reference/imagick/examples.xml
===================================================================
--- phpdoc/en/trunk/reference/imagick/examples.xml 2009-08-09 18:50:25 UTC (rev 286959)
+++ phpdoc/en/trunk/reference/imagick/examples.xml 2009-08-09 19:04:06 UTC (rev 286960)
@@ -180,6 +180,33 @@
</mediaobject>
</example>
</para>
+ <para>
+ Working with animated GIF images
+ <example>
+ <title>Read in GIF image and resize all frames</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+/* Create a new imagick object and read in GIF */
+$im = new Imagick("example.gif");
+
+/* Resize all frames */
+foreach ($im as $frame) {
+ /* 50x50 frames */
+ $frame->thumbnailImage(50, 50);
+
+ /* Set the virtual canvas to correct size */
+ $frame->setImagePage(50, 50, 0, 0);
+}
+
+/* Notice writeImages instead of writeImage */
+$im->writeImages("example_small.gif", true);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
</section>
</chapter>