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

10
package-lock.json generated
View File

@@ -76,6 +76,7 @@
"tiff": "^7.1.2",
"utif": "^3.1.0",
"vite-plugin-static-copy": "^3.2.0",
"wasm-vips": "^0.0.17",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
"zgapdfsigner": "^2.7.5"
},
@@ -13400,6 +13401,15 @@
"integrity": "sha512-zksaLKM2fVlnB5jQQDqKXXwYHLQUVH9es+5TOOHwGOVJOCeRBCiPjwSg+3tN2AdTCzjgli4jijCH290kXb/zWQ==",
"license": "Apache-2.0"
},
"node_modules/wasm-vips": {
"version": "0.0.17",
"resolved": "https://registry.npmjs.org/wasm-vips/-/wasm-vips-0.0.17.tgz",
"integrity": "sha512-nhkqUNJDUymImoXGrVfImC4wzIFTb9KfBpAngb7dcEQNPP1gVTx4+WL3VVVDSXQpMsyeacsQDOx0+DM33Rpurg==",
"license": "MIT",
"engines": {
"node": ">=16.4.0"
}
},
"node_modules/webidl-conversions": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",