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