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:
@@ -330,6 +330,14 @@
|
||||
"pdfToTiff": {
|
||||
"name": "PDF to TIFF",
|
||||
"subtitle": "Convert each PDF page into a TIFF image.",
|
||||
"dpi": "DPI (Resolution)",
|
||||
"dpiExplanation": "Higher DPI = better quality for printing, larger file size",
|
||||
"compression": "Compression",
|
||||
"compressionExplanation": "LZW and Deflate are lossless. CCITT Group 4 is best for B&W scanned documents.",
|
||||
"colorMode": "Color Mode",
|
||||
"multiPage": "Save as multi-page TIFF (single file)",
|
||||
"loadingVips": "Loading image processor...",
|
||||
"converting": "Converting to TIFF...",
|
||||
"alert": {
|
||||
"invalidFile": "Invalid File",
|
||||
"invalidFileExplanation": "Please upload a PDF file.",
|
||||
@@ -337,9 +345,6 @@
|
||||
"noFileExplanation": "Please upload a PDF file first.",
|
||||
"conversionSuccess": "PDF converted to TIFFs successfully!",
|
||||
"conversionError": "Failed to convert PDF to TIFF. The file might be corrupted."
|
||||
},
|
||||
"loader": {
|
||||
"converting": "Converting to TIFF..."
|
||||
}
|
||||
},
|
||||
"pdfToGreyscale": {
|
||||
|
||||
Reference in New Issue
Block a user