Repository navigation
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