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

@@ -330,17 +330,14 @@
"pdfToTiff": {
"name": "PDF zu TIFF",
"subtitle": "Jede PDF-Seite in ein TIFF-Bild konvertieren.",
"alert": {
"invalidFile": "Ungültige Datei",
"invalidFileExplanation": "Bitte wähle eine PDF Datei aus.",
"noFile": "Keine Datei",
"noFileExplanation": "Bitte lade zuerst eine PDF-Datei hoch.",
"conversionSuccess": "PDF erfolgreich in TIFFs konvertiert!",
"conversionError": "Konvertierung in TIFF fehlgeschlagen. Die Datei könnte beschädigt sein."
},
"loader": {
"converting": "Wird in TIFF konvertiert..."
}
"dpi": "DPI (Auflösung)",
"dpiExplanation": "Höhere DPI = bessere Druckqualität, größere Dateigröße",
"compression": "Komprimierung",
"compressionExplanation": "LZW und Deflate sind verlustfrei. CCITT Group 4 eignet sich am besten für S/W-Scandokumente.",
"colorMode": "Farbmodus",
"multiPage": "Als mehrseitiges TIFF speichern (einzelne Datei)",
"loadingVips": "Bildprozessor wird geladen...",
"converting": "Wird in TIFF konvertiert..."
},
"pdfToGreyscale": {
"name": "PDF zu Graustufen",