Skip to content

AVIF image errors #13919

Description

@ve3

Description

The following code:

<?php
$image = imagecreatefromavif('image.avif');

Resulted in this output:
There are different errors.
If you downloaded image from https://github.com/AOMediaCodec/av1-avif/tree/master/testFiles/Apple/multilayer_examples where file name is animals_00_multilayer_a1lx.avif
The result on Windows will be:

Warning: imagecreatefromavif(): avif error - Could not parse image: No AV1 items found

The result on Linux will be:

Notice: imagecreatefromavif(): Image's color profile is not sRGB

If you downloaded image file name animals_00_multilayer_grid_a1lx.avif
The result on Windows will be:

Warning: imagecreatefromavif(): avif error - Could not parse image: Invalid image grid

The result on Linux will be:

Notice: imagecreatefromavif(): Image's color profile is not sRGB

If you downloaded image file name animals_00_singlelayer.avif
The result on Windows will be:

Notice: imagecreatefromavif(): Image's color profile is not sRGB

The result on Linux will be:

Notice: imagecreatefromavif(): Image's color profile is not sRGB

But I expected this output instead:

\GdImage

PHP Version

PHP 8.3.1, PHP 8.3.4

Operating System

Windows 11 x64, Debian (based on Docker php:8.3-apache).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions