From 4d395c9cc21b03446a43cd0337bcf4ea7be6b903 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 4 May 2023 11:31:34 +0800 Subject: [PATCH] :art: Support AVIF image format Fix https://github.com/siyuan-note/siyuan/issues/8170 --- app/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/constants.ts b/app/src/constants.ts index f226eeb95..0bc967adc 100644 --- a/app/src/constants.ts +++ b/app/src/constants.ts @@ -389,7 +389,7 @@ export abstract class Constants { public static readonly SIYUAN_IMAGE_FOLDER: string = "1f4d1"; // assets - public static readonly SIYUAN_ASSETS_IMAGE: string[] = [".apng", ".ico", ".cur", ".jpg", ".jpe", ".jpeg", ".jfif", ".pjp", ".pjpeg", ".png", ".gif", ".webp", ".bmp", ".svg"]; + public static readonly SIYUAN_ASSETS_IMAGE: string[] = [".apng", ".ico", ".cur", ".jpg", ".jpe", ".jpeg", ".jfif", ".pjp", ".pjpeg", ".png", ".gif", ".webp", ".bmp", ".svg", ".avif"]; public static readonly SIYUAN_ASSETS_AUDIO: string[] = [".mp3", ".wav", ".ogg", ".m4a"]; public static readonly SIYUAN_ASSETS_VIDEO: string[] = [".mov", ".weba", ".mkv", ".mp4", ".webm"]; public static readonly SIYUAN_ASSETS_EXTS: string[] = [".pdf"].concat(Constants.SIYUAN_ASSETS_IMAGE).concat(Constants.SIYUAN_ASSETS_AUDIO).concat(Constants.SIYUAN_ASSETS_VIDEO);