mirror of
https://github.com/immich-app/immich.git
synced 2025-05-31 20:25:32 -04:00
feat(web): display original heif images for safari (#10478)
This commit is contained in:
parent
c58b0ac66a
commit
58b17a866b
@ -267,6 +267,11 @@ const supportedImageMimeTypes = new Set([
|
|||||||
'image/webp',
|
'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
|
* Returns true if the asset is an image supported by web browsers, false otherwise
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user