mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
feat(web): display original heif images for safari (#10478)
This commit is contained in:
parent
c58b0ac66a
commit
58b17a866b
1 changed files with 5 additions and 0 deletions
|
@ -267,6 +267,11 @@ const supportedImageMimeTypes = new Set([
|
|||
'image/webp',
|
||||
]);
|
||||
|
||||
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); // https://stackoverflow.com/a/23522755
|
||||
if (isSafari) {
|
||||
supportedImageMimeTypes.add('image/heic').add('image/heif');
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the asset is an image supported by web browsers, false otherwise
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue