WIP: Added avif images support 🌄 (#1660)

* WIP: Added avif images support

* Update CHANGELOG.md

* Update admin_ranks.php
This commit is contained in:
Roman Kelesidis 2024-10-19 11:25:29 +07:00 committed by GitHub
commit 0587f7a035
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 8 deletions

View file

@ -613,7 +613,8 @@ $bb_cfg['file_id_ext'] = [
9 => 'zip',
10 => '7z',
11 => 'bmp',
12 => 'webp'
12 => 'webp',
13 => 'avif'
];
// Attachments
@ -627,7 +628,7 @@ $bb_cfg['gen_forums_allowed_ext'] = ['zip', 'rar']; // TODO: For regular section
// Avatars
$bb_cfg['avatars'] = [
'allowed_ext' => ['gif', 'jpg', 'png', 'bmp', 'webp'], // Allowed file extensions (after changing, do the same for $bb_cfg['file_id_ext'])
'allowed_ext' => ['gif', 'jpg', 'png', 'bmp', 'webp', 'avif'], // Allowed file extensions (after changing, do the same for $bb_cfg['file_id_ext'])
'bot_avatar' => '/gallery/bot.gif', // The bot's avatar
'max_size' => 100 * 1024, // Avatar's allowed dimensions
'max_height' => 100, // Avatar height in px
@ -640,7 +641,7 @@ $bb_cfg['avatars'] = [
// Group avatars
$bb_cfg['group_avatars'] = [
'allowed_ext' => ['gif', 'jpg', 'png', 'bmp', 'webp'], // Allowed file extensions (add the same for $bb_cfg['file_id_ext'])
'allowed_ext' => ['gif', 'jpg', 'png', 'bmp', 'webp', 'avif'], // Allowed file extensions (add the same for $bb_cfg['file_id_ext'])
'max_size' => 300 * 1024, // max avatar size in bytes
'max_height' => 300, // Avatar height in px
'max_width' => 300, // Avatar weight in px