fix: WebP images render as gray instead of the expected image (#2601)

This commit is contained in:
Nico Miguelino
2025-12-08 22:36:57 -08:00
committed by GitHub
parent f76a95b8d1
commit ad892806e5
2 changed files with 3 additions and 1 deletions

View File

@@ -10,7 +10,7 @@
export const getMimetype = (filename: string): string => {
const viduris = ['rtsp', 'rtmp']
const mimetypes = [
[['jpe', 'jpg', 'jpeg', 'png', 'pnm', 'gif', 'bmp'], 'image'],
[['jpe', 'jpg', 'jpeg', 'png', 'pnm', 'gif', 'bmp', 'webp'], 'image'],
[['avi', 'mkv', 'mov', 'mpg', 'mpeg', 'mp4', 'ts', 'flv'], 'video'],
]
const domains = [[['www.youtube.com', 'youtu.be'], 'youtube_asset']]

View File

@@ -231,6 +231,7 @@ def get_viewer_context(board: str) -> dict:
[
'qt6-base-dev',
'qt6-webengine-dev',
'qt6-image-formats-plugins',
]
)
@@ -241,6 +242,7 @@ def get_viewer_context(board: str) -> dict:
'libgst-dev',
'libsqlite0-dev',
'libsrtp0-dev',
'qt5-image-formats-plugins',
]
)