summaryrefslogtreecommitdiff
path: root/ext/gd/tests/imagecreatefromstring_png.phpt
blob: b76f1a181a6eb0a6c23166db39d7f92415c3c5d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
imagecreatefromstring() - PNG format
--SKIPIF--
<?php
if (!extension_loaded('gd')) die('skip ext/gd required');
if (!(imagetypes() & IMG_PNG)) die('skip PNG support required');
?>
--FILE--
<?php
// create an image from a PNG string representation
$im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring.gif'));
var_dump(imagesx($im));
var_dump(imagesy($im));

?>
--EXPECT--
int(10)
int(10)