AVIF

Post Reply
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
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?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

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: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
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
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
lodria
Master Bludit
Posts: 151
Joined: Wed Jan 29, 2020 8:32 pm
Has thanked: 27 times
Been thanked: 10 times

Thanks!
Post Reply