mirror of
https://github.com/NotAShelf/stash.git
synced 2026-04-12 22:17:41 +00:00
db: distinguish HEIC from HEIF in mime type detection
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I1a25c6d30fde6b4cc33c2a1666b2e1606a6a6964
This commit is contained in:
parent
3d22a271bc
commit
047445b143
1 changed files with 1 additions and 0 deletions
|
|
@ -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",
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue