feat: 图像与预览中增加 LibRaw 选项。 (#244)

This commit is contained in:
sam 2024-07-31 12:10:45 +08:00 committed by GitHub
parent b967133ee1
commit b485bf2979
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 24 additions and 0 deletions

View File

@ -231,6 +231,8 @@
"thumbDependencyWarning": "LibreOffice generators depend on Cloudreve built-in or VIPS generators, please enable either one.",
"ffmpeg": "FFmpeg",
"ffmpegDes": "Use FFmpeg to generate video thumbnails.",
"libRaw": "LibRaw",
"libRawDes": "Use LibRaw to process RAW images",
"executable": "Executable",
"executableDes": "The address or command of the third-party generator executable.",
"executableTest": "Test",

View File

@ -231,6 +231,8 @@
"thumbDependencyWarning": "I generatori di LibreOffice dipendono dai generatori integrati di Cloudreve o VIPS, abilita uno dei due.",
"ffmpeg": "FFmpeg",
"ffmpegDes": "Usa FFmpeg per generare le miniature dei video.",
"libRaw": "LibRaw",
"libRawDes": "Utilizzo di LibRaw per elaborare le immagini Raw",
"executable": "Eseguibile",
"executableDes": "L'indirizzo o il comando dell'eseguibile del generatore di terze parti.",
"executableTest": "Prova",

View File

@ -231,6 +231,8 @@
"thumbDependencyWarning": "LibreOffice 生成器依赖于 Cloudreve 内置 或 VIPS 生成器,请开启其中任一生成器。",
"ffmpeg": "FFmpeg",
"ffmpegDes": "使用 FFmpeg 生成视频缩略图。",
"libRaw": "LibRaw",
"libRawDes": "使用 LibRaw 处理 RAW 图像。",
"executable": "可执行文件",
"executableDes": "第三方生成器可执行文件的地址或命令",
"executableTest": "测试",

View File

@ -231,6 +231,8 @@
"thumbDependencyWarning": "LibreOffice 生成器依賴於 Cloudreve 內建 或 VIPS 生成器,請開啓其中任一生成器。",
"ffmpeg": "FFmpeg",
"ffmpegDes": "使用 FFmpeg 生成影片縮圖。",
"libRaw": "LibRaw",
"libRawDes": "使用 LibRaw 處理 RAW 圖像。",
"executable": "可執行文件",
"executableDes": "第三方生成器可執行文件的地址或命令",
"executableTest": "測試",

View File

@ -74,6 +74,9 @@ export default function ImageSetting() {
thumb_proxy_enabled: "0",
thumb_proxy_policy: [],
thumb_max_src_size: "",
thumb_libraw_enabled: "0",
thumb_libraw_path: "",
thumb_libraw_exts: "",
});
const handleChange = (name) => (event) => {

View File

@ -83,6 +83,19 @@ const generators = [
},
],
},
{
name: "libRaw",
des: "libRawDes",
enableFlag: "thumb_libraw_enabled",
executableSetting: "thumb_libraw_path",
inputs: [
{
name: "thumb_libraw_exts",
label: "generatorExts",
des: "generatorExtsDes",
},
],
},
{
name: "cloudreveBuiltin",
des: "cloudreveBuiltinDes",