diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2022-12-08 14:49:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-08 14:49:49 +0900 |
| commit | e81c2962a0b04e38a4c974e50d2cd6bc495cbdf2 (patch) | |
| tree | 1a9b54a00de1e769620d547f77a000b442839d12 /packages/client/src | |
| parent | 12.120.0-alpha.11 (diff) | |
| download | misskey-e81c2962a0b04e38a4c974e50d2cd6bc495cbdf2.tar.gz misskey-e81c2962a0b04e38a4c974e50d2cd6bc495cbdf2.tar.bz2 misskey-e81c2962a0b04e38a4c974e50d2cd6bc495cbdf2.zip | |
enhance: AVIF support (#9281)
* chore: Make image/avif browsersafe
* server side
* change FileInfoService
* :v:
* avifはMastodonでは絶望的 see https://github.com/misskey-dev/misskey/issues/9283
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/const.ts | 1 | ||||
| -rw-r--r-- | packages/client/src/pages/user/index.photos.vue | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/packages/client/src/const.ts b/packages/client/src/const.ts index 505cf2748e..77366cf07b 100644 --- a/packages/client/src/const.ts +++ b/packages/client/src/const.ts @@ -7,6 +7,7 @@ export const FILE_TYPE_BROWSERSAFE = [ 'image/gif', 'image/jpeg', 'image/webp', + 'image/avif', 'image/apng', 'image/bmp', 'image/tiff', diff --git a/packages/client/src/pages/user/index.photos.vue b/packages/client/src/pages/user/index.photos.vue index 5c9a73dcb7..fae2c005d8 100644 --- a/packages/client/src/pages/user/index.photos.vue +++ b/packages/client/src/pages/user/index.photos.vue @@ -47,6 +47,8 @@ function thumbnail(image: misskey.entities.DriveFile): string { onMounted(() => { const image = [ 'image/jpeg', + 'image/webp', + 'image/avif', 'image/png', 'image/gif', 'image/apng', |