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

Avif support in Grav

Solved by Vadym View solution

Started by Pedro M 4 years ago · 2 replies · 655 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 jean-louis67, 3 weeks ago
2 311 3 weeks ago
General · by Andy Miller, 3 weeks ago
0 312 3 weeks ago
General · by Veehem, 4 weeks ago
0 264 4 weeks ago
General · by milkboy, 4 weeks ago
0 267 4 weeks ago
General · by ian russell, 1 month ago
2 336 1 month ago