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