Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Avif image format error

Started by Denys 4 years ago · 2 replies · 906 views
4 years ago

I just try this type of image. I created simple blog post and add avif image inside and get error.

TXT
Given type (avif) is not valid

Type error cannot convert undefined or null to object
at function keys
at https:// .com/user.plugins/admin/theme/grav/js/admin.min.js

Screenshot from 2022-05-15 15-03-28|690x376

4 years ago

Yes. I read this. According this article in the file system/config/media.yaml full list of supported mimetypes. In the file I found

YAML
png:
    type: image
    thumb: media/thumb-png.png
    mime: image/png
  webp:
    type: image
    thumb: media/thumb-webp.png
    mime: image/webp
  avif:
    type: image
    thumb: media/thumb.png
    mime: image/avif

PNG, Webp works fine. But avif got error.

Suggested topics

Topic Participants Replies Views Activity
Support · by Anna, 2 weeks ago
1 198 2 weeks ago
Support · by webmasterodp, 4 weeks ago
4 343 4 weeks ago
Support · by nwhitfield, 1 month ago
2 310 1 month ago
Support · by stell, 1 month ago
5 598 1 month ago
Support · by gravinator, 2 months ago
5 739 1 month ago