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

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