imagecreatefromavif

(PHP 8 >= 8.1.0)

imagecreatefromavif由文件或 URL 创建一个新图象。

说明

imagecreatefromavif(string $filename): GdImage|false

imagecreatefromavif() returns an image object representing the image obtained from the given filename.

参数

filename

Path to the AVIF raster image.

返回值

成功后返回图象资源,失败后返回 false