imageavif

&gd.image.output;

&reftitle.description; `bool` `imageavif` `GdImage` `image` ``resource``string``null```file`&null; `int` `quality`-1 `int` `speed`-1

Outputs or saves a AVIF Raster image from the given `image`.

&reftitle.parameters;

&gd.image.description;

`file`

- &gd.image.path;

`quality`

- `quality` is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, larger file). If `-1` is provided, the default value `30` is used.

`speed`

- `speed` is optional, and ranges from 0 (slow, smaller file) to 10 (fast, larger file). If `-1` is provided, the default value `6` is used.

&reftitle.returnvalues;

&return.success;

&gd.return.trueonerror;
&reftitle.seealso;

- `imagepng`
- `imagewbmp`
- `imagejpeg`
- `imagetypes`