Page 1 of 1
AVIF
Posted: Sun Aug 30, 2020 2:31 pm
by lodria
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.
Re: AVIF
Posted: Sun Aug 30, 2020 8:47 pm
by Edi
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?
Re: AVIF
Posted: Mon Aug 31, 2020 7:28 am
by lodria
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.
Re: AVIF
Posted: Mon Aug 31, 2020 10:57 am
by Edi
You are right, the MIME type
image/avif does not work.
I opened an issue on GitHub:
https://github.com/bludit/bludit/issues/1264
Re: AVIF
Posted: Mon Aug 31, 2020 4:35 pm
by lodria
Thanks!