diff --git a/public/locales/en-US/dashboard.json b/public/locales/en-US/dashboard.json index c086f9d..0dd11e7 100644 --- a/public/locales/en-US/dashboard.json +++ b/public/locales/en-US/dashboard.json @@ -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", diff --git a/public/locales/it-IT/dashboard.json b/public/locales/it-IT/dashboard.json index e4f988c..3af7437 100644 --- a/public/locales/it-IT/dashboard.json +++ b/public/locales/it-IT/dashboard.json @@ -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", diff --git a/public/locales/zh-CN/dashboard.json b/public/locales/zh-CN/dashboard.json index 6ac186b..58504da 100644 --- a/public/locales/zh-CN/dashboard.json +++ b/public/locales/zh-CN/dashboard.json @@ -231,6 +231,8 @@ "thumbDependencyWarning": "LibreOffice 生成器依赖于 Cloudreve 内置 或 VIPS 生成器,请开启其中任一生成器。", "ffmpeg": "FFmpeg", "ffmpegDes": "使用 FFmpeg 生成视频缩略图。", + "libRaw": "LibRaw", + "libRawDes": "使用 LibRaw 处理 RAW 图像。", "executable": "可执行文件", "executableDes": "第三方生成器可执行文件的地址或命令", "executableTest": "测试", diff --git a/public/locales/zh-TW/dashboard.json b/public/locales/zh-TW/dashboard.json index f53d9f6..c5bcc9a 100644 --- a/public/locales/zh-TW/dashboard.json +++ b/public/locales/zh-TW/dashboard.json @@ -231,6 +231,8 @@ "thumbDependencyWarning": "LibreOffice 生成器依賴於 Cloudreve 內建 或 VIPS 生成器,請開啓其中任一生成器。", "ffmpeg": "FFmpeg", "ffmpegDes": "使用 FFmpeg 生成影片縮圖。", + "libRaw": "LibRaw", + "libRawDes": "使用 LibRaw 處理 RAW 圖像。", "executable": "可執行文件", "executableDes": "第三方生成器可執行文件的地址或命令", "executableTest": "測試", diff --git a/src/component/Admin/Setting/Image.js b/src/component/Admin/Setting/Image.js index 9579503..dfc6253 100644 --- a/src/component/Admin/Setting/Image.js +++ b/src/component/Admin/Setting/Image.js @@ -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) => { diff --git a/src/component/Admin/Setting/ThumbGenerators.js b/src/component/Admin/Setting/ThumbGenerators.js index d0a72a0..814f193 100644 --- a/src/component/Admin/Setting/ThumbGenerators.js +++ b/src/component/Admin/Setting/ThumbGenerators.js @@ -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",