Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Avif support in Grav

Solved by Vadym View solution

Started by Pedro M 4 years ago · 2 replies · 769 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 Andy Miller, 1 week ago
0 138 1 week ago
General · by lynbor, 1 month ago
3 454 2 weeks ago
General · by lynbor, 3 weeks ago
7 588 2 weeks ago
General · by Harry, 2 weeks ago
0 176 2 weeks ago
General · by Old Man Umby, 1 month ago
2 318 4 weeks ago