Library

thorvg v1.1.4

Versionv1.1.4
Stars★ 1,928
Released2026-11-19

A production-ready C++ vector graphics engine supporting SVG and Lottie formats, featuring advanced rendering backends such as WebGPU for high-performance graphics.

Release notes

This release adds animated GIF loading and experimental Android video playback. The OpenGL (WebGL) and WebGPU engines accelerate common blend modes and improve translucent gradient rendering. WebGPU also reduces the memory needed for composition and improves stability after surface reconfiguration and when rendering large frames on Metal.

Lottie gains more accurate text-on-path rendering, gradient animation, and repeater drawing. SVG support improves with CSS cascade fixes, alpha masking, and `image-rendering` support. This release also adds APIs for counting laid-out glyphs and loading raw pixels with an explicit row stride and ownership.

### 🚀 Engines
- [core] Support task dependencies in the task scheduler,  and increase CPU rendering frame rates by up to 25%. #1493
- [core] Correct precision errors in radial gradient calculations. #3985
- [core] Use exact line lengths when trimming paths. #5076
- [core] Let callers choose whether the asset resolver runs before or after internal resolution. #4678
- [core] Count Bézier segments without heap allocation, increasing frame rates in the stroke benchmark by up to 20%.
- [core] Apply picture resizing after the first draw.
- [core] Include the picture origin in bounds calculations.
- [core] Improve rendering and loader robustness. (GHSA-7m5w-c3mj-r673)
- [core] Add output glyph count API support. #3397
- [gpu] Preserve the backdrop as translucent gradients fade out and apply source opacity correctly. #4803
- [wgpu] Fix crashes after surface reconfiguration.
- [wgpu] Size composition targets to their bounds, reducing GPU memory usage by up to 30%. #4933
- [wgpu] Accelerate Screen, Exclusion, and Add blending. #4957 #4803
- [wgpu] Skip unused multisample attachments, share opacity uniform buffers, and initialize custom blend shaders on demand. #4933
- [wgpu] Prevent large frames from stalling on Metal.
- [gl] Accelerate Screen, Exclusion, and Add blending. #4957
- [gl] Rebuild stroke geometry when stroke properties change.
- [gl] Reduce uniform overhead for gradients and images, reducing GPU memory usage by up to 30%. #4933
- [cpu] Apply masks and blend modes correctly when rendering scene effects. #4952
- [cpu] Increase RLE band pool capacity to improve rasterization performance. #4795

### ✨ Animation
- [lottie] Support perpendicular glyph rotation for text on a path.
- [lottie] Improve loader robustness for truncated input and invalid precomposition references. #4921 #4923
- [lottie] Fix text alignment anchor initialization.
- [lottie] Fix glyph lookup and text range selector errors, including Ease Low and randomized ranges.
- [lottie] Restore the expression context when a worker thread ID is reused.
- [lottie] Accept standard JSON whitespace when detecting Lottie files. #5008
- [lottie] Improve vertical text alignment. #4334
- [lottie] Respect hold keyframes in animated gradient color stops. #5019
- [lottie] Resolve reported gradient parsing vulnerabilities. (GHSA-72m2-xw35-rrv3), (GHSA-693j-3439-j9m5)
- [lottie] Prevent infinite recursion in cyclic precomposition references.
- [lottie] Fix a memory leak in the Lottie loader. #4923
- [lottie] Support the three-argument forms of the `linear()` and `ease()` expressions.
- [lottie] Fix drawing with consecutive repeaters and reduce the work needed to render them. #5074
- [gif] Add GIF87a and GIF89a loading, including animated GIFs with frame seeking and segment playback. #3453

### 🖼️ Picture
- [svg] Preserve CSS `!important` declarations across repeated selectors and fix related cascade regressions.
- [svg] Fix a crash on a bare `all` selector and continue parsing subsequent CSS rules. #4922
- [svg] Improve handling of malformed styles and fix memory leaks on malformed input. #4923
- [svg] Respect `mask-type="alpha"`.
- [svg] Preserve shapes when a gradient cannot be rendered. #4726
- [svg] Support `image-rendering` for embedded images.
- [png] Reuse scanline buffers when decoding …

Share this resource


Discovered 2026-11-20 Source GitHub Archive 2026-11 →