Browse Source

feat(frontend): 添加对 webp 和 avif 图片格式的支持- 在设置页面的图片格式列表中添加了 webp 和 avif 选项
- 扩展了用户可以选择的图片格式,提升了应用的灵活性和兼容性

panqiuyao 5 months ago
parent
commit
84f92e1da1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      frontend/src/views/Setting/index.vue

+ 2 - 0
frontend/src/views/Setting/index.vue

@@ -203,6 +203,8 @@ const imageFormatList = ref([
   { label: 'jpg', value: 'jpg' },
   { label: 'png', value: 'png' },
   { label: 'jpeg', value: 'jpeg' },
+  { label: 'webp', value: 'webp' },
+  { label: 'avif', value: 'avif' },
 ]);
 const imageSharpeningList = ref([
   { label: '0', value: '0' },