mirror of
https://github.com/php/php-src.git
synced 2024-10-19 23:44:13 +00:00
12 lines
311 B
PHP
12 lines
311 B
PHP
|
<?php
|
||
|
/* $Id$ */
|
||
|
$im = imagecreatefromgif('zip://' . dirname(__FILE__) . '/test_im.zip#pear_item.gif');
|
||
|
imagepng($im, 'a.png');
|
||
|
|
||
|
$z = new ZipArchive();
|
||
|
$z->open(dirname(__FILE__) . '/test_im.zip');
|
||
|
$im_string = $z->getFromName("pear_item.gif");
|
||
|
$im = imagecreatefromstring($im_string);
|
||
|
imagepng($im, 'b.png');
|
||
|
|