1--TEST--
2imagecreatefromstring() - AVIF format
3--EXTENSIONS--
4gd
5--SKIPIF--
6<?php
7if (!(imagetypes() & IMG_AVIF)) {
8    die('skip AVIF support required');
9}
10?>
11--FILE--
12<?php
13  echo "Reading image whose major brand is 'avif':\n";
14  $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring_major_brand.avif'));
15  var_dump(imagesx($im));
16  var_dump(imagesy($im));
17
18  echo "Reading image with a compatible brand that's 'avif':\n";
19  $im = imagecreatefromstring(file_get_contents(__DIR__ . '/imagecreatefromstring_compatible_brand.avif'));
20  var_dump(imagesx($im));
21  var_dump(imagesy($im));
22?>
23--EXPECT--
24Reading image whose major brand is 'avif':
25int(250)
26int(375)
27Reading image with a compatible brand that's 'avif':
28int(480)
29int(270)
30