db: distinguish HEIC from HEIF in mime type detection

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1a25c6d30fde6b4cc33c2a1666b2e1606a6a6964
This commit is contained in:
raf 2026-01-22 13:48:06 +03:00
commit 047445b143
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -725,6 +725,7 @@ pub fn detect_mime(data: &[u8]) -> Option<String> {
ImageType::Qoi => "image/qoi",
ImageType::Tga => "image/x-tga",
ImageType::Vtf => "image/x-vtf",
ImageType::Heif(imagesize::Compression::Hevc) => "image/heic",
ImageType::Heif(_) => "image/heif",
_ => "application/octet-stream",
};