diff --git a/src/pages/home/previews/image.tsx b/src/pages/home/previews/image.tsx index e9031986d..fa41586fa 100644 --- a/src/pages/home/previews/image.tsx +++ b/src/pages/home/previews/image.tsx @@ -43,7 +43,7 @@ import { Obj, ObjType } from "~/types" import { ext, formatDate, getFileSize, loadScriptIIFE } from "~/utils" const HEIF_EXTS = new Set(["heic", "heif", "avif", "vvc", "avc"]) -const isHeif = (name: string) => HEIF_EXTS.has(ext(name)) +const isHeif = (name: string) => HEIF_EXTS.has(ext(name).toLowerCase()) const ZOOM_MIN = 0.1 const ZOOM_MAX = 10 const ZOOM_WHEEL_FACTOR = 1.08