- Add formatCandidateRules.ts to define rules for generating format candidates based on file features. - Introduce formatPredictionModel.ts to predict the most likely target format based on user behavior and file features. - Create inferenceService.ts to integrate all inference modules and provide a unified inference API. - Develop inference.tsx as an API endpoint for frontend calls to predict formats and engines based on file extensions. - Implement logging for conversion events and dismissals, along with user profile retrieval. - Ensure warmup management for engine predictions and provide status checks.
9.6 KiB
9.6 KiB
ConvertX-CN
開箱即用的全功能檔案轉換服務 — 一個 Docker 命令,5 分鐘部署完成
為什麼選擇 ConvertX-CN?
| 特色 | 說明 |
|---|---|
| 📁 1000+ 格式 | 文件、圖片、影音、電子書一次搞定 |
| 🔧 25+ 引擎 | LibreOffice、FFmpeg、Pandoc 全到位 |
| 🈶 中文優化 | 內建中日韓字型與 OCR,告別亂碼 |
| 🌐 65 種語言 | 跨國團隊無障礙使用 |
| 🎯 智能推斷 | 自動預測目標格式與引擎,越用越懂你 |
| 📊 PDF 翻譯 | PDFMathTranslate + BabelDOC 雙引擎 |
| 📄 PDF 轉 MD | MinerU 智能擷取(保留表格、公式、圖片) |
📚 文件目錄
完整文件請參閱 專案總覽
| 章節 | 說明 | 連結 |
|---|---|---|
| 📖 00 專案總覽 | 專案定位、功能特色、版本比較 | 查看 |
| 🚀 01 快速開始 | 5 分鐘部署完成 | 查看 |
| 🐳 02 部署指南 | Docker 設定、反向代理、HTTPS | 查看 |
| ⚙️ 03 環境變數 | 所有可用設定與推薦值 | 查看 |
| 🔌 04 功能總覽 | 轉換器、OCR、PDF 翻譯 | 查看 |
| 🔗 05 API 文件 | REST & GraphQL API | 查看 |
| 🔧 06 錯誤排查 | 常見問題與解決方案 | 查看 |
| 👩💻 07 開發指南 | 專案結構、貢獻規範 | 查看 |
| 📄 08 授權說明 | AGPL-3.0 授權 | 查看 |
🚀 快速開始
Docker Run
mkdir -p ~/convertx-cn/data && cd ~/convertx-cn && \
docker run -d \
--name convertx-cn \
--restart unless-stopped \
-p 3000:3000 \
-v ./data:/app/data \
-e TZ=Asia/Taipei \
-e JWT_SECRET=Xk9mPqL2vN7wR4tY6uI8oA3sD5fG1hJ0 \
convertx/convertx-cn:latest
⚠️ 安全提醒:正式環境請更換
JWT_SECRET為自己的隨機字串(至少 32 字元)
開啟瀏覽器:http://localhost:3000
Docker Compose(推薦)
💡 以下命令會自動建立
~/convertx-cn/data資料夾、產生docker-compose.yml並啟動服務
mkdir -p ~/convertx-cn/data && cd ~/convertx-cn && \
cat > docker-compose.yml << 'EOF'
services:
convertx:
image: convertx/convertx-cn:latest
container_name: convertx-cn
restart: unless-stopped
ports:
- "3000:3000"
volumes:
- ./data:/app/data
environment:
- TZ=Asia/Taipei
- JWT_SECRET=Xk9mPqL2vN7wR4tY6uI8oA3sD5fG1hJ0
EOF
docker compose up -d
⚠️ 安全提醒:正式環境請更換
JWT_SECRET為自己的隨機字串(至少 32 字元)
開啟瀏覽器:http://localhost:3000
📖 詳細說明請參閱 快速開始
🔗 線上示範
🔗 https://convertx-cn.bioailab.qzz.io
| 項目 | 內容 |
|---|---|
| 帳號 | admin@example.com |
| 密碼 | admin |
⚠️ 示範站僅供測試,請勿上傳敏感檔案,會定期清理資料。
⚡ 常見問題速查
| 問題 | 解決方法 |
|---|---|
| 登入後被踢回登入頁 | 加上 HTTP_ALLOWED=true 或 TRUST_PROXY=true |
| 重啟後資料消失 | 確認 ./data:/app/data 且資料夾存在 |
| 重啟後被登出 | 設定固定的 JWT_SECRET |
更多問題 → FAQ
📦 支援格式
| 轉換器 | 用途 | 格式數 |
|---|---|---|
| FFmpeg | 影音 | 400+ |
| ImageMagick | 圖片 | 200+ |
| LibreOffice | 文件 | 60+ |
| Pandoc | 文件 | 100+ |
| Calibre | 電子書 | 40+ |
| Inkscape | 向量圖 | 20+ |
| PDFMathTranslate | PDF 翻譯 | 15+ |
| BabelDOC | PDF 翻譯/轉換 | 15+ |
| MinerU | PDF 轉 Markdown | 10+ |
完整列表 → 轉換器文件
🖼️ 預覽
🔄 更新
docker compose down
docker compose pull
docker compose up -d
🎯 版本選擇:Lite / 一般版 / Full
ConvertX-CN 提供三個版本,滿足不同需求:
| 特性 | Lite 版 | 一般版(推薦) | Full 版 |
|---|---|---|---|
| Image 大小 | 約 12-15+ GB | ||
| 部署速度 | 最快 | 中等 | 較慢 |
| 適用對象 | 輕量使用者 | 一般使用者 | 進階/多語言 |
| 基本轉檔 | ✅ | ✅ | ✅ |
| OCR(7語言) | ❌ | ✅ | ✅ |
| PDF 翻譯 | ❌ | ✅ | ✅ |
| MinerU AI | ❌ | ✅ | ✅ |
| OCR(65語言) | ❌ | ❌ | ✅ |
| 完整 TexLive | ❌ | ❌ | ✅ |
版本標籤
| Tag | 說明 |
|---|---|
latest |
一般版最新穩定版 |
latest-lite |
Lite 版最新穩定版 |
0.1.16 |
一般版指定版本 |
0.1.16-lite |
Lite 版指定版本 |
Lite 版快速啟動
docker run -d \
--name convertx-cn-lite \
-p 3000:3000 \
-v ./data:/app/data \
-e JWT_SECRET=你的隨機字串至少32字元 \
convertx/convertx-cn:latest-lite
📖 詳細說明請參閱 部署指南
🙏 致謝
本專案基於 C4illin/ConvertX 開發,感謝原作者的貢獻。

