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:
@@ -279,7 +279,15 @@
|
||||
},
|
||||
"pdfToTiff": {
|
||||
"name": "PDF sang TIFF",
|
||||
"subtitle": "Chuyển đổi mỗi trang PDF thành hình ảnh TIFF."
|
||||
"subtitle": "Chuyển đổi mỗi trang PDF thành hình ảnh TIFF.",
|
||||
"dpi": "DPI (Độ phân giải)",
|
||||
"dpiExplanation": "DPI cao hơn = chất lượng in tốt hơn, kích thước tệp lớn hơn",
|
||||
"compression": "Nén",
|
||||
"compressionExplanation": "LZW và Deflate là nén không mất dữ liệu. CCITT Nhóm 4 phù hợp nhất cho tài liệu quét đen trắng.",
|
||||
"colorMode": "Chế độ màu",
|
||||
"multiPage": "Lưu dưới dạng TIFF nhiều trang (một tệp)",
|
||||
"loadingVips": "Đang tải bộ xử lý hình ảnh...",
|
||||
"converting": "Đang chuyển đổi sang TIFF..."
|
||||
},
|
||||
"pdfToGreyscale": {
|
||||
"name": "PDF sang thang xám",
|
||||
|
||||
Reference in New Issue
Block a user