Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Avif support in Grav

Solved by Vadym View solution

Started by Pedro M 4 years ago · 2 replies · 708 views
4 years ago

Hello there.

I'm trying to use an avif image in Grav and it shows this error:

TXT
TypeError: Cannot convert undefined or null to object
    at Function.keys ()
    at http://localhost:8080/grav/user/plugins/admin/themes/grav/js/admin.min.js?01e6f80974:4325:16
    at http://localhost:8080/grav/user/plugins/admin/themes/grav/js/admin.min.js?01e6f80974:890:12

Is there support for AVIF images in Grav?

Thanks.

4 years ago Solution

Hi @pmoreno,
it seems not (grav use Gregwar's Image PHP library to handle images, and it doesn't support AVIF)
there was already similar question without a solution,
but webp format works fine, if that option suits you

4 years ago

Hi @b.da

I saw this post on the forum, but since it was from 2015, I thought that after this time there would be a way for Grav to support AVIF files.

I will have to use other formats instead.
Thanks for your answer.

Suggested topics

Topic Participants Replies Views Activity
General · by jeremycherfas, 1 week ago
5 195 3 hours ago
General · by lynbor, 6 days ago
2 129 3 days ago
General · by Old Man Umby, 1 week ago
1 103 1 week ago
General · by Sebastian, 2 weeks ago
1 128 2 weeks ago
General · by Andy Miller, 3 weeks ago
0 251 3 weeks ago