php-internal-docs
8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
im.php
Go to the documentation of this file.
1
<?php
2
3
$im
=
imagecreatefromgif
(
'zip://'
.
dirname
(__FILE__) .
'/test_im.zip#pear_item.gif'
);
4
imagepng
(
$im
,
'a.png'
);
5
6
$z
=
new
ZipArchive
();
7
$z
->open(
dirname
(__FILE__) .
'/test_im.zip'
);
8
$im_string
=
$z
->getFromName(
"pear_item.gif"
);
9
$im
=
imagecreatefromstring
(
$im_string
);
10
imagepng
(
$im
,
'b.png'
);
$z
$z
Definition
addglob.php:3
dirname
dirname(string $path, int $levels=1)
Definition
basic_functions.stub.php:2380
ZipArchive
Definition
php_zip.stub.php:68
imagecreatefromgif
imagecreatefromgif(string $filename)
Definition
gd.stub.php:555
imagepng
imagepng(GdImage $image, $file=null, int $quality=-1, int $filters=-1)
Definition
gd.stub.php:613
imagecreatefromstring
imagecreatefromstring(string $data)
Definition
gd.stub.php:547
$im
$im
Definition
im.php:3
$im_string
$im_string
Definition
im.php:8
ext
zip
examples
im.php
Generated on Sat Aug 23 2025 01:46:12 for php-internal-docs by
1.13.2