Skip to content

Releases: md2docx/image

Release v1.4.0

26 Sep 04:15

Choose a tag to compare

Minor Changes

  • 27a9793: ✨ Added quality option 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

24 Sep 09:53

Choose a tag to compare

Patch Changes

  • 59b1107: Remove bmp and gif fallback 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

12 Jun 05:37

Choose a tag to compare

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

12 Jun 05:06

Choose a tag to compare

Minor Changes

  • c2945bc: Added support for optimized in-memory caching of resolved image data.

    • Introduced cacheConfig.cache option 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) and cacheConfig.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.

Full Changelog: 1.2.1...1.3.0

Release v1.2.1

06 Jun 04:18

Choose a tag to compare

Patch Changes

  • 4764975: Store type in _type for conversion to JSX

Full Changelog: 1.2.0...1.2.1

Release v1.2.0

02 Jun 06:41

Choose a tag to compare

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

02 Jun 04:39

Choose a tag to compare

Patch Changes

  • d02c5b4: fix: Mermaid title alignment in pie chart

Full Changelog: 1.1.2...1.1.3

Release v1.1.2

01 Jun 15:46

Choose a tag to compare

Patch Changes

Full Changelog: 1.1.1...1.1.2

Release v1.1.1

30 May 21:17

Choose a tag to compare

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

Release v1.1.0

26 May 04:54

Choose a tag to compare

What's Changed

Full Changelog: 1.0.1...1.1.0