Releases: md2docx/image
Releases · md2docx/image
Release v1.4.0
Minor Changes
-
27a9793: ✨ Added
qualityoption for image conversion.- Defaults to 0.92.
- Used only when conversion is required and the output format is lossy (e.g., JPEG).
Patch Changes
-
c57114b: Improve SVG → image conversion by preferring OffscreenCanvas over
<canvas>when available.-
OffscreenCanvas advantages:
- Runs in worker contexts → avoids blocking the main thread during rasterization.
- Provides more consistent and reliable Blob generation compared to
HTMLCanvasElement.toBlob. - Better performance for large or complex SVGs.
-
Fallback to
<canvas>remains for browsers without OffscreenCanvas support (e.g., Safari).
-
Full Changelog: 1.3.2...1.4.0
Release v1.3.2
Patch Changes
- 59b1107: Remove
bmpandgiffallback formats. These formats are not well supported on canvas, causing issues with our Canvas-based fallback conversion.
Full Changelog: 1.3.1...1.3.2
Release v1.3.1
Patch Changes
- 6c56799: provide cache field to avoid entire cacheConfig option for simple cache sharing optimizations.
Full Changelog: 1.3.0...1.3.1
Release v1.3.0
Minor Changes
-
c2945bc: Added support for optimized in-memory caching of resolved image data.
- Introduced
cacheConfig.cacheoption to share or inject a memory cache instance across multiple plugin invocations. - Consumers can now fine-tune cache behavior using
cacheConfig.parallel(to avoid redundant parallel resolutions) andcacheConfig.cacheMode(choose between"memory","idb", or"both"). - Enhances image resolution performance in multi-page or repeated image scenarios, especially when used across sessions or documents.
- Introduced
Full Changelog: 1.2.1...1.3.0
Release v1.2.1
Release v1.2.0
Minor Changes
- c0f8772: Add configurable SVG rendering fixes to improve diagram rendering, particularly for Mermaid pie charts. Extract SVG fixes into a separate exportable function that can be customized through plugin options.
Full Changelog: 1.1.3...1.2.0
Release v1.1.3
Release v1.1.2
Release v1.1.1
Patch Changes
- d260e28: Update mermaid plugin to use the diagramType infered by the mermaid library itself.
- 0998cd8: refactor: simplify URL handling in image resolver and update TypeScript target to ES2021
- acef6ad: fix the placeholder typo
- 42c9527: Use shared caching mechanism from @m2d/core
Full Changelog: 1.1.0...1.1.1