1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/gd/tests/imagecreatefromstring_webp.phpt
2017-07-30 02:50:33 +02:00

21 lines
450 B
PHP

--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));
?>
===DONE===
--EXPECT--
int(10)
int(10)
===DONE===