feat: add TIFF conversion options and integrate wasm-vips for image processing

- Updated README.md to include new dependencies: wasm-vips, pixelmatch, diff, and microdiff.
- Added wasm-vips to package.json and package-lock.json for advanced TIFF encoding.
- Enhanced localization files with new options for DPI, compression, color mode, and multi-page TIFF saving.
- Implemented UI changes in pdf-to-tiff.html to allow users to select DPI, compression type, color mode, and multi-page options.
- Refactored pdf-to-tiff-page.ts to utilize wasm-vips for TIFF encoding, replacing previous UTIF implementation.
- Introduced TiffOptions interface in pdf-to-tiff-type.ts for better type management.
- Updated Vite configuration to exclude wasm-vips from dependency optimization.
This commit is contained in:
alam00000
2026-03-24 13:20:50 +05:30
parent b732ee7925
commit 3ca19af354
26 changed files with 507 additions and 101 deletions

View File

@@ -279,7 +279,15 @@
},
"pdfToTiff": {
"name": "PDF 轉 TIFF",
"subtitle": "將每個 PDF 頁面轉換為 TIFF 圖片。"
"subtitle": "將每個 PDF 頁面轉換為 TIFF 圖片。",
"dpi": "DPI (解析度)",
"dpiExplanation": "DPI 越高 = 列印品質越好,檔案越大",
"compression": "壓縮方式",
"compressionExplanation": "LZW 和 Deflate 為無損壓縮。CCITT Group 4 最適合黑白掃描文件。",
"colorMode": "色彩模式",
"multiPage": "儲存為多頁 TIFF (單一檔案)",
"loadingVips": "正在載入影像處理器...",
"converting": "正在轉換為 TIFF..."
},
"pdfToGreyscale": {
"name": "PDF 轉灰階",