Lottie4J Releases
2026-11-25, 1.5.0
Playback performance release. Measured on an Apple M2 Max, real window, adaptive scaling off.
- Layers with an animated opacity that paint a single shape with one fill or stroke are now drawn with the global alpha instead of through a full-canvas off-screen buffer. In the
winter-townsample (348 layers, 1200×800) the render time went from 360.6 ms to 7.2 ms per frame, about 3 fps to a steady 60 fps. Pixels are unchanged: at most 2/255 on about 0.01% of the bytes. - Track mattes only process the area the content layer paints in instead of the whole canvas, and an empty content skips the matte.
winter-townwent from 7.2 ms to 3.2 ms per frame (313 achievable fps), so 360 ms to 3.2 ms in total. - Track mattes reuse the area of the previous frame (plus a margin) instead of probing every frame. The prediction is verified against the drawn content, a miss falls back to the probe, and a probe is forced every 4th frame or when the frame jumps.
animated_background_patterns(1080×1080, 14 mattes) went from 45.8 ms to 34.9 ms per frame. - The matted result is cropped to the content bounds plus 1 px before drawing, so a frame renders identically whether it follows playback or is a fresh seek (
SequentialPlaybackTest). - New:
RenderStatsandRenderProfilerincom.lottie4j.fxplayer.utilreport render times per frame and per stage, the file viewer has a--bench=<seconds>option, andPlaybackBenchmarkTestmeasures headless playback. - Added contribution guidelines (CONTRIBUTING.md).
Read more in the release announcement.
The list of all changes between 1.4.0 and 1.5.0 is available on GitHub.
2026-11-19, 1.4.0
- PR #16:
LottieFileSavernow writes whatLottieFileLoaderreads.save(Animation, File | OutputStream)writes Lottie JSON,saveDotLottie(DotLottie, File | OutputStream)writes a dotLottie archive (manifest, animations, themes, state machines, images and fonts), andsaveDotLottie(Animation, id, OutputStream)writes a single animation as a version 2 archive. Animation ids that are missing or would leave their directory are refused. - Audio layers (
ty6) now keep their levels. The new recordAudioSettingsholds the animated left and right channel level fromau.lvin percent, available asLayer.audioSettings(), and is read and written. The player does not play sound. The previous canonical constructor ofLayeris kept, so code written against 1.3.0 still compiles.
Read more in the release announcement.
The list of all changes between 1.3.0 and 1.4.0 is available on GitHub.
2026-11-19, 1.3.0
- PR #15: Real-world Lottie files are now read leniently. Files with expressions, external image assets, unknown layer types, blend modes or shapes, and properties written as a bare number used to be rejected and now load. Expressions are kept and written back, but never evaluated.
- Frame rate, in point and out point are now read as
Double, so 29.97 fps is no longer read as 29.FrameTiming.getFrameRategives the exact rate and the player uses it for playback. - Solid color layers use their own
swandshsize instead of filling three times the composition. - Keyframes in the pre-5 format are completed on load, precompositions that contain themselves and parents that run in a circle no longer cause a
StackOverflowError, and a track matte named withtpis now honored. - Hidden layers and shapes (
"hd": true) are no longer drawn, but a hidden layer still serves as parent and matte. - New:
UnsupportedFeatures.find(animation)lists what a file uses that the player doesn’t draw,LottiePlayer.snapshotFrame(double)renders one frame into an image, andImageSimilarityis now public incom.lottie4j.fxplayer.util. - New in the model:
Animation.fonts(),Layer.styles(),LottieFileLoader.load(InputStream)andloadJson(String). - API changes:
Asset.shapeTypeis renamed toAsset.directory(aString), timing values returnDoubleinstead ofInteger, and the definitions’fromValuereturnnullfor unknown values instead of throwing.
Read more in the release announcement.
The list of all changes between 1.2.8 and 1.3.0 is available on GitHub.
2026-10-15, 1.2.8
- Issue #12 by @bruno-obv: Fixed a regression in 1.2.7 where animations with track mattes of different sizes showed horizontal streaks during playback. The
MatteRenderernow only reuses a cached snapshot image when its size matches the matte, as a snapshot into a smaller image got cropped and then stretched. - Added a regression test that compares sequential playback with a fresh seek on every frame, and added the Noto “collision” emoji to the comparison tests.
- PR #14: The rendering comparison tests now disable adaptive off-screen scaling, so they measure rendering fidelity only. Before, the scores of heavy animations depended on how busy the CI runner was, which made the build flaky. No library code changes.
Thanks to @bruno-obv for the detailed bug report and fix.
Read more in the release announcement.
The list of all changes between 1.2.7 and 1.2.8 is available on GitHub.
2026-10-14, 1.2.7
- Performance: image assets are now decoded once per player and cached (including failed loads), instead of base64-decoding and re-creating a JavaFX
Imageon every frame. All image assets are preloaded when the player builds its render caches, so the first frame doesn’t stall either. - Performance:
MatteRendererreuses its off-screen canvases, snapshot images and pixel buffers between frames while the size is unchanged, and the debug-only pixel sampling no longer runs when debug logging is disabled. In a profiling run this cut GC pauses by about two thirds and removed PNG decoding from the hot methods. - File viewer: fixed leaked players and tree-cell bindings when loading another file, and the WebView comparison no longer blocks the JavaFX thread while shutting down ChromeDriver.
- Added a profiling harness (
tools/profiling/) to check the viewers for memory leaks, FX-thread stalls and lingering threads.
Read more in the release announcement.
The list of all changes between 1.2.6 and 1.2.7 is available on GitHub.
2026-10-01, 1.2.6
- PR #11 by @zapek: Switched animation lifecycle log messages (start, stop, offscreen blend-mode rendering) from
infotodebuglevel, to stop them from flooding the log output.
Thanks to contributions by @zapek.
The list of all changes between 1.2.5 and 1.2.6 is available on GitHub.
2026-07-09, 1.2.5
- Fixed matte type handling (tt:2 = INVERTED_ALPHA).
- Merged gradient alpha and color stops at the union of offsets, and added linear-RGB gradient stop densification, for more accurate gradient rendering.
- Fixed text-layer color handling and added support for animated text color.
- Fixed blend-mode offscreen buffer sizing (ceiling instead of truncating).
- Improved Gaussian blur accuracy.
- Ported lottie-web’s BezierEaser byte-for-byte into a shared
core.helper.BezierEasing, improving easing fidelity. - Extracted pixel-level matte composition into a testable static helper, with further correctness improvements.
- Switched temporary files to publicly writable directories.
- Migrated the WebView reference renderer used in comparison tests from lottie-web to dotlottie-wc (thorvg).
- Various code-quality improvements from SonarQube review, plus expanded unit and comparison test coverage.
The list of all changes between 1.2.4 and 1.2.5 is available on GitHub.
2026-06-15, 1.2.4
- Fixed Lottie arc rendering: constrained the easing solver to prevent bezier curve divergence.
- Added bisection fallback for flat-point curves.
- Fixed full-circle trim path flickering caused by floating-point precision loss in offset wrapping.
- Fixed border rendering error.
- Added Pi4J test file.
The list of all changes between 1.2.3 and 1.2.4 is available on GitHub.
2026-05-07, 1.2.3
- dotLottie data model extended to include all (optional) definitions in V1 and v2.
- Jackson library bumped to 3.1.1.
- Headless unit tests added for comparison between JavaScript generted images and the JavaFX player output. For more info, see Testing Lottie4J JavaFX Animations in GitHub Actions Without a Display: JavaFX 26 Headless to the Rescue.
- Use Java 25 JVM in CI (required minimum for JavaFX 26)
- Use Selenium and ChromeDriver to generated JavaScript images (on PC).
- Extended JavaDoc.
- PR #8 by @bguedon: Fix track-matte source layer index direction.
- PR #9 by @bguedon: Apply layer-level vector masks (masksProperties) to top-level layers.
- PR #10 by @bguedon: Type Layer in/out points and time stretch as Double.
Thanks to contributions by @FDelporte, @bguedon, and @bruno-obv.
The list of all changes between 1.2.2 and 1.2.3 is available on GitHub.
2026-03-23, 1.2.2
When inverting the colors in the player, don’t invert the background color.
The list of all changes between 1.2.1 and 1.2.2 is available on GitHub.
2026-03-20, 1.2.1
Added invert method for LottiePlayer. This allows to invert colors, e.g. when using white/black logos and want to link the colors to dark/light theme.
The list of all changes between 1.2.0 and 1.2.1 is available on GitHub.
2026-03-20, 1.2.0
Many improvements after 1.1.0, with new .lottie format support, rendering fixes, performance work, and dependency updates.
- Core
- Added
.lottie(dotLottie) loader support. - Added support for merge and modifier shapes.
- Added missing blend mode support.
- Added spatial bezier interpolation for position animations.
- Fixed model field types and added missing JSON properties for mask, layer, and animation objects.
- Improved JSON output and value ordering when recreating JSON structures.
- Upgraded to Jackson 3 (
tools.jackson), including follow-up compatibility fixes and CVE-related dependency updates.
- Added
- LottiePlayer in module FXPlayer
- Improved playback speed by reducing rendering passes.
- Added caching of layer/precomp render metadata to improve heavy animation playback.
- Added adaptive rendering mode toggle.
- Made
LottiePlayerresizable. - Added cropping support.
- Integrated animated mask rendering.
- Added play-between-markers.
- Fixed last-frame/keyframe boundary issues that could cause disappearing layers.
- Improved consistency in path stroke rendering.
- Extended unit test to compare loaded and recreated JSON.
- FXFileViewer
- Refactored duplicated WebView JavaScript bridge code into reusable components.
- Improved FX vs JS debug views.
- Improved compare test synchronization and added resized-player validation.
- Project and docs
- Added Java 21 support and badge updates.
- Fixed package names and build warnings, and completed additional JavaDoc cleanup.
- General cleanup/restructuring and test improvements.
- Added README/media updates and extra links.
The list of all changes between 1.1.0 and 1.2.0 is available on GitHub.
2026-03-10, 1.1.0
Many rendering improvements after testing more animations. This contains some API changes, that’s the reason for the version bump to 1.1.0.
- Changed license to Apache V2
- Changed logging to SLF4J
- Code restructuring and JavaDoc improvements
- The Core module has been extended with new Java objects to support missing Lottie animation definitions related to the improvements in the player.
- LottiePlayer in module FXPlayer
- Correctly close paths, fixing a gap in the thick border
- Better border rendering
- Added Track Matte support
- Fix layer disappearance at exact keyframe boundaries
- Fix gradient alpha channel parsing for correct transparency rendering
- Added image layer rendering
- Fix GradientStroke deserialization conflict and color format
- Added solid color layer rendering support
- Added text objects and rendering
- Improved animation handling
- Added Gaussian Blur effect
- Fixed layer opacity
- Combine multiple trim paths
- Fixed the handling of animations starting later
- Fixed stroke style for dotted lines
- Fixed correct fade transitions for overlapping shapes
- Improved gradient fills
- Extended LottieFileDebugViewer in module FXFileViewer to make it easier to compare JavaFX player with JavaScript player and debug differences:
- Added screenshot buttons to save single or all frames
- Added a tile viewer to visualize each layer
- Layers/objects in a tile view can be exported as a new Lottie file to test specific rendering issues
- New LottieFileSimpleViewer in module FXFileViewer to show the animation in a simple way with the JavaFX player only.
- Integrated a unit test CompareFxViewWithWebViewTest in FXFileViewer to compare the JavaFX player with the JavaScript player, using a screenshot comparison approach. This test can not run on CI, because it requires a display output, but it can be run locally. Hopefully this can be fixed later with headless JavaFX, see this issue.
The list of all changes between 1.0.0 and 1.1.0 is available on GitHub.
2026-03-02, 1.0.0
The first release with many files tests and working OK. Still needs further improvements for more complex animations and drawings.
More info and details in this blog post and check the older blog posts for the steps taken up to the first release.