Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Avif support in Grav

Solved by Vadym View solution

Started by Pedro M 4 years ago · 2 replies · 479 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 Jerry Hunt, 4 days ago
2 80 9 hours ago
General · by pamtbaau, 14 hours ago
1 51 13 hours ago
General · by Andy Miller, 1 day ago
0 44 1 day ago
General · by Marcel, 12 months ago
6 346 5 days ago
General · by Duc , 5 days ago
3 40 5 days ago