AVIF

Post Reply
lodria
Master Bludit
Posts: 54
Joined: Wed Jan 29, 2020 8:32 pm

Hi!

I read about a new file format called AVIF. It would be good later if the bludit system could use it. I added EDI with a recommendation, but it still doesn't work that way.
User avatar
Edi
Site Admin
Posts: 2083
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

lodria wrote: Sun Aug 30, 2020 2:31 pm I added EDI with a recommendation, but it still doesn't work that way.
I do not understand, what you mean. Can you please explain what you have done?

And: Does your browser support yet AVIF?
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
lodria
Master Bludit
Posts: 54
Joined: Wed Jan 29, 2020 8:32 pm

Hi!

I wrote the new format in the media.php file:
The mime-type can be added in the file media.php in the directory /bl-kernel/admin/themes/booty/html (lines 181/182):

Code: Select all

// Check file type/extension
const validImageTypes = ['image/gif', 'image/jpeg', 'image/png', 'image/svg+xml','image/webp'];
The new chrome browser now supports this file as well.
User avatar
Edi
Site Admin
Posts: 2083
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

You are right, the MIME type image/avif does not work.

I opened an issue on GitHub:

https://github.com/bludit/bludit/issues/1264
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
lodria
Master Bludit
Posts: 54
Joined: Wed Jan 29, 2020 8:32 pm

Thanks!
Post Reply