Back to index

php5  5.3.10
im.php
Go to the documentation of this file.
00001 <?php
00002 /* $Id: im.php 260091 2008-05-21 09:27:41Z pajoye $ */
00003 $im = imagecreatefromgif('zip://' . dirname(__FILE__) . '/test_im.zip#pear_item.gif');
00004 imagepng($im, 'a.png');
00005 
00006 $z = new ZipArchive();
00007 $z->open(dirname(__FILE__) . '/test_im.zip');
00008 $im_string = $z->getFromName("pear_item.gif");
00009 $im = imagecreatefromstring($im_string);
00010 imagepng($im, 'b.png');
00011