Repository navigation
Releases
v0.6.0
Replaces the Skia image renderer with a pure-Rust one (tiny-skia + skrifa) behind a new opt-in image cargo feature. The PyPI wheels and the release CLI binaries include it, so pip install pjsekai-scores-rs and the downloaded CLI render PNG/JPEG with no system libraries. Everyone who renders images should upgrade and read the breaking changes; Rust library and wasm users who only parse or render SVG are not affected.
⚠️ Breaking changes
pjsekai-scores-rsis now the only Python package, and its wheels always include PNG/JPEG andDrawing.raster().pjsekai-scores-rs-skia-imageis deprecated: its 0.6.0 release contains no code and only depends onpjsekai-scores-rs>=0.6.0, so existing requirements keep working. Replace it withpjsekai-scores-rs>=0.6.0in your requirements. (#39)- Image output only draws text with the fonts you pass in
font_paths/font_dirs(CLI--font-path/--font-dir). The Skia build fell back to system fonts through fontconfig; the wheels now raise "no fonts to draw text with" instead. Pass your font files, or build from source with thesystem-fontscargo feature to keep a system-font fallback. (#39) - The
skia-imagecargo feature is removed. PNG/JPEG output is the new opt-inimagefeature (tiny-skia); the default features stay the parser and SVG renderer. Enableimage(andsystem-fontsfor the system-font fallback) where you usedskia-image. The crate-level API keeps its names (score_to_skia_png,SkiaDirectError,SkiaRasterOutput, ...); thepjsekai_scores_rs::skia_directmodule path is gone. (#39) - The
pjsekai-scores-rsbinary now needs the new opt-inclifeature, so the library no longer depends onclap. A plaincargo install pjsekai-scores-rsinstalls nothing; install the CLI withcargo install pjsekai-scores-rs --features cli,image. (#39) Drawing.raster()now returns RGBA pixels:RasterImage.color_typeis always"rgba8888"(premultiplied), where the Skia build returned"bgra8888"on most platforms. Code that reads the buffer must followcolor_typeinstead of assuming BGRA. (#39)PngEncoder,score_to_skia_png_with_encoderand thePJSEKAI_SCORES_PNG_ENCODERenvironment variable are removed, as there is one PNG encoder now. (#39)
Added
- Add the opt-in
imagecargo feature, which renders PNG/JPEG without a C++ toolchain, a Skia download, FreeType or fontconfig. The renderer and its codecs are pure Rust, and the CLI builds as a static musl binary. It reproduces the Linux Skia output of 0.5 closely (54 dB PSNR on a full Expert chart). (#39) - Add a
system-fontscargo feature that resolves CSS font families, including generic ones such assans-serif, from the system fonts. (#39) - Add
pjsekai_scores_rs.RASTER_BACKEND("tiny-skia"), present in builds with image output. (#39) - Add a
jpeg_subsampling="444"option (CLI--jpeg-subsampling 444) for sharper coloured lines and text in JPEG output. (#39)
Changed
- Release CLI binaries now write PNG/JPEG as well as SVG.
--features cliwithoutimagebuilds an SVG-only CLI, which stops with a message to rebuild with--features cli,imagewhen asked for.png/.jpg. (#39) - Text in image output can differ slightly from 0.5 on macOS and Windows, where Skia used the platform's font engine; output follows Linux Skia on every platform. (#39)
Fixed
- Stabilize the placement of speed and text events when rebasing a chart. d7259ae
Performance
- Rasterize a full Expert chart (5248×2688, note sprites) in 15.5 ms instead of 26 ms, with 52 ms of CPU instead of 60 ms. Decoded note sprites and recent jackets are cached per process. (#39)
- Encode PNG with the
pngcrate and zlib-rs: about the same wall time as the old multithreaded encoder at about a sixth of its CPU, and 20-25 % smaller files. (#39) - The image wheels are about 27 % smaller than the 0.5 Skia wheels (1.73 MB vs 2.37 MB for CPython 3.13 on macOS arm64). (#39)
Upgrade notes
- Python: depend on
pjsekai-scores-rs>=0.6.0and pass fonts infont_paths/font_dirs. Remove any FreeType or fontconfig workaround for the old Skia wheel (for example, relinking its bundled FreeType). Uninstallpjsekai-scores-rs-skia-imageonce nothing requires it. - pip only: upgrading the 0.5
pjsekai-scores-rs-skia-imagewheel in place (pip install -U pjsekai-scores-rs-skia-image) deletes thepjsekai_scores_rsmodule, because removing the old wheel's files also removes the onespjsekai-scores-rsjust installed. Runpip uninstall pjsekai-scores-rs-skia-imagebefore upgrading, orpip install --force-reinstall --no-deps pjsekai-scores-rsafterwards. uv and fresh environments are not affected. - Rust: replace
features = ["skia-image"]withfeatures = ["image"]. Library and wasm builds without it no longer need--no-default-features, and the library no longer pulls inclap. - CLI: use the release binaries, or
cargo install pjsekai-scores-rs --features cli,image(addsystem-fontsfor the system-font fallback).
Artifacts
- CLI archives: attached below, with checksums in
SHA256SUMS-v0.6.0.txt. - Python:
pip install pjsekai-scores-rs==0.6.0(pjsekai-scores-rs-skia-image0.6.0 is the deprecation shim) - Rust crate:
pjsekai-scores-rs = "0.6.0"on crates.io
Maintenance
- Move CI and releases onto the shared ci-templates workflows. (#36)
- Skip Sonar on Dependabot and fork PRs. (#35)
- Smoke-test PNG, JPEG and raster output from the built wheels on every tested platform. (#39)
- Add SonarCloud analysis with LCOV coverage, and resolve its findings. 01eaf46, 38886a3, 71dc93f, 9f3c5bf
- Expand test coverage of the core flows, the CLI and fractions. d7259ae, 986de2e
- Drop the unsupported Python 3.13t wheel from the release build. 14cb701
- Bump
clapfrom 4.6.6 to 4.6.7 andwasm-bindgenfrom 0.2.127 to 0.2.129. (#37) - Bump
pyo3from 0.29.0 to 0.29.2. (#20) - Bump
clapfrom 4.6.1 to 4.6.6. (#21) - Bump
regexfrom 1.12.4 to 1.13.1. (#15) - Bump
serde_jsonfrom 1.0.150 to 1.0.151. (#18) - Bump
wasm-bindgenfrom 0.2.126 to 0.2.127. (#22) - Bump
actions/setup-pythonfrom 6 to 7. (#17) - Bump
astral-sh/setup-uvfrom 8.3.0 to 10.0.1. (#23) - Update the agent docs and README. 2765233, 3a49648, 5ab3ff1, 8850443
Full Changelog: v0.5.0...v0.6.0
v0.5.0
Adds WebAssembly bindings, Python type stubs and a zero-copy raster API for Skia output, and speeds up PNG encoding. Prebuilt CLI downloads change: read the breaking changes if you download the Skia-enabled CLI or the Linux aarch64 or Intel macOS binaries.
⚠️ Breaking changes
- Release CLI binaries are now archives for Linux x64 (
.tar.gz), macOS arm64 (.tar.gz) and Windows x64 (.zip), with SHA-256 checksums, so scripts that download the old per-target file names must switch to the new archive names. The archives are built without theskia-imagefeature, and Linux aarch64 and Intel macOS binaries are no longer published. For PNG/JPEG output from the CLI, or for those platforms, build from source (cargo build --release --features skia-imagefor image output). 1e97f21
Added
- Add a
wasmfeature that exposes the parser, timing APIs, rebase, lyric parser and SVG renderer to JavaScript throughwasm-bindgen. It works on in-memory strings (Score.fromSus(),Score.fromJson(),Score.load()) and does not include Skia image output. Build it withwasm-pack build --release --target web --no-default-features --features wasm. 1732072 - Ship Python type stubs with the wheels. 1732072
- Add Python
Drawing.raster(), which renders into a read-only native pixel buffer (RasterImage, exposed through the buffer protocol) so in-process consumers can use the pixels without a PNG encode and decode. Requirespjsekai-scores-rs-skia-imageor a build with theskia-imagefeature. c91e985
Performance
- Encode PNG output with the multithreaded
mtpngencoder by default. c91e985
Upgrade notes
- Set
PJSEKAI_SCORES_PNG_ENCODER=skiato go back to Skia's PNG encoder, andPJSEKAI_SCORES_PROFILE=1to log per-render phase timings. c91e985
Artifacts
- CLI archives: attached below, with checksums in
SHA256SUMS-v0.5.0.txt. - Python:
pip install pjsekai-scores-rs==0.5.0, orpip install pjsekai-scores-rs-skia-image==0.5.0for PNG/JPEG output - Rust crate:
pjsekai-scores-rs = "0.5.0"on crates.io
Maintenance
- Bump
serde_jsonfrom 1.0.149 to 1.0.150. (#2) - Bump
skia-safefrom 0.97.0 to 0.97.2. (#3) - Bump
skia-safefrom 0.97.2 to 0.99.0. (#9) - Bump
pyo3from 0.28.3 to 0.29.0. (#5) - Bump
regexfrom 1.12.3 to 1.12.4. (#7) - Bump
wasm-bindgenfrom 0.2.122 to 0.2.125. (#6) - Bump
wasm-bindgenfrom 0.2.125 to 0.2.126. (#10) - Bump
astral-sh/setup-uvfrom 8.1.0 to 8.2.0. (#4) - Bump
astral-sh/setup-uvfrom 8.2.0 to 8.3.0. (#11) - Bump
actions/checkoutfrom 6 to 7. (#8) - Update dependencies. a142aca
- Standardize the CI and release workflows and the agent docs. 1e97f21
- Fix a clippy warning in the custom chart JSON parser. 0b3c975
Full Changelog: v0.4.4...v0.5.0
v0.4.4
Improves compatibility with Project SEKAI custom chart JSON and changes how charts are split into columns. If you pass --target-segment-seconds to the CLI, remove it before upgrading.
⚠️ Breaking changes
- Remove the CLI
--target-segment-secondsoption and thetarget_segment_secondsfield ofDrawingConfig. Charts are now split into columns of one sentence length (four bars unless the chart sets another) in both SVG and Skia output, and a column also ends where the section or sentence length changes. Remove the option from CLI calls and stop setting the field in Rust; the Pythontarget_segment_secondsargument and theDrawing::newparameter are still accepted but ignored. 9eb9a2f
Fixed
- Parse Project SEKAI custom chart JSON more closely to the TS renderer, including slide chains, connected notes, guide and decorative slides, and timing conversion. 5dbc0d5, 6a38f06
- Fade guide and decorative slide paths in Skia PNG and JPEG output with the same gradient as the SVG output. 9566205
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64), in standard and Skia-enabled (
-skia-image) variants: attached below. - Python:
pip install pjsekai-scores-rs==0.4.4, orpip install pjsekai-scores-rs-skia-image==0.4.4for PNG/JPEG output - Rust crate:
pjsekai-scores-rs = "0.4.4"on crates.io
Maintenance
- Update the Skia font documentation. 7dcb06a
Full Changelog: v0.4.3...v0.4.4
v0.4.3
Speeds up Skia image rendering when custom fonts are configured.
Performance
- Cache typefaces loaded from
font_pathsandfont_dirsfor the life of the process, so Python API renders no longer scan and read large CJK font files every time. The cache is invalidated when a font file's path, modification time or size changes. 0a6d955
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64), in standard and Skia-enabled (
-skia-image) variants: attached below. - Python:
pip install pjsekai-scores-rs==0.4.3, orpip install pjsekai-scores-rs-skia-image==0.4.3for PNG/JPEG output - Rust crate:
pjsekai-scores-rs = "0.4.3"on crates.io
Full Changelog: v0.4.2...v0.4.3
v0.4.2
Fixes font loading for Skia chart images, so text set in CSS fonts and CJK text render with the intended typefaces.
Added
- Load local fonts explicitly with the CLI
--font-pathand--font-diroptions (both repeatable) and the Pythonfont_pathsandfont_dirsarguments. 652e006
Fixed
- Read the CSS
font-familydeclarations, including Rodin and Hiragino, when rendering images with Skia. 652e006 - Fall back to the configured fonts for CJK text when system fonts do not cover the requested glyphs. 652e006
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64), in standard and Skia-enabled (
-skia-image) variants: attached below. - Python:
pip install pjsekai-scores-rs==0.4.2, orpip install pjsekai-scores-rs-skia-image==0.4.2for PNG/JPEG output - Rust crate:
pjsekai-scores-rs = "0.4.2"on crates.io
Full Changelog: v0.4.1...v0.4.2
v0.4.1
Speeds up Skia image rendering, adds a CLI timing flag, and fixes publishing of the Python wheels.
Added
- Print render and write timings with the CLI
--perfflag. 7e63439
Fixed
- Publish the Python wheels from releases again, including Linux aarch64 builds of
pjsekai-scores-rs-skia-image. 6f1b2b2, a1f8f90, fa44cce, 0a349a4, 4d39247
Performance
- Render chart columns in parallel for Skia image output when more than one CPU is available, and cache bar-to-time lookups and fonts during a render. 7e63439
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64), in standard and Skia-enabled (
-skia-image) variants: attached below. - Python:
pip install pjsekai-scores-rs==0.4.1, orpip install pjsekai-scores-rs-skia-image==0.4.1for PNG/JPEG output - Rust crate:
pjsekai-scores-rs = "0.4.1"on crates.io
Full Changelog: v0.4.0...v0.4.1
v0.4.0
Adds support for Project SEKAI custom chart JSON alongside SUS, and publishes a separate Skia-enabled Python package for PNG and JPEG output.
Added
- Parse Project SEKAI custom chart JSON as well as
.sus. 6a65615 - Detect the score format automatically in the Rust, CLI and Python loaders. The CLI takes
--score-format auto|sus|json(defaultauto), and Python addsScore.open_sus(),Score.open_json(),Score.from_json(),Score.from_dict()andScore.load(). 6a65615 - Add Python
score_to_svg(),score_to_png(),score_to_jpg()andscore_to_jpeg()convenience functions, and expand the Python API docs. 6a65615 - Publish Skia-enabled Python wheels as a separate package,
pjsekai-scores-rs-skia-image. 6a65615
Fixed
- Install the Skia build dependencies needed for the Skia-enabled CLI release builds. 59158bc
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64), in standard and Skia-enabled (
-skia-image) variants: attached below. - Python:
pip install pjsekai-scores-rs==0.4.0, orpip install pjsekai-scores-rs-skia-image==0.4.0for PNG/JPEG output - Rust crate:
pjsekai-scores-rs = "0.4.0"on crates.io
Maintenance
- Build release binaries with thin LTO, a single codegen unit and stripped symbols. 40f63ed
Full Changelog: v0.3.0...v0.4.0
v0.3.0
Adds direct PNG and JPEG chart output through Skia, without rasterizing SVG. Image output is behind the optional skia-image feature; the release now ships a Skia-enabled CLI build alongside the standard one.
Added
- Render charts directly to PNG or JPEG with Skia when the crate is built with the
skia-imagefeature. The CLI picks the format from the-oextension (.svg,.png,.jpg,.jpeg), and--jpeg-qualitysets JPEG quality (default 90). cabefee - Add Python
Drawing.png(),Drawing.jpg()andDrawing.jpeg(), plussus_to_png(),sus_to_jpg()andsus_to_jpeg(), returning image bytes. They require a wheel built from source with--features python,skia-image; the published wheel stays SVG-only. cabefee - Add CLI options for chart footer metadata (
--title,--artist,--difficulty,--play-level,--music-id,--jacket), skill overlays (--skill,--music-meta) and--target-segment-seconds. cabefee - Choose the note asset file extension with
--note-asset-extension(defaultpng). For Skia output,--note-hostcan point to a local directory of note assets. cabefee
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64), in standard and Skia-enabled (
-skia-image) variants: attached below. - Python:
pip install pjsekai-scores-rs==0.3.0 - Rust crate:
pjsekai-scores-rs = "0.3.0"on crates.io
Maintenance
- Configure Dependabot updates. c4ddcff
Full Changelog: v0.2.0...v0.3.0
v0.2.0
Draws speed-change lines above notes so they stay readable.
Changed
- Draw speed-change lines and their labels after all note layers, so a note on the same row no longer hides them. The Python reference draws them underneath. 65eefad
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64): attached below.
- Python:
pip install pjsekai-scores-rs==0.2.0 - Rust crate:
pjsekai-scores-rs = "0.2.0"on crates.io
Full Changelog: v0.1.4...v0.2.0
v0.1.4
Adds free-threaded Python wheels for Linux x86_64 and updates dependencies.
Added
- Publish free-threaded Python 3.13t and 3.14t wheels for Linux x86_64. d13bbd5
- Add the
css/color.cssstylesheet, usable with--css. 9f0d2c7
Artifacts
- CLI binaries for Linux (x86_64, aarch64), macOS (x86_64, arm64) and Windows (x86_64): attached below.
- Python:
pip install pjsekai-scores-rs==0.1.4 - Rust crate:
pjsekai-scores-rs = "0.1.4"on crates.io
Maintenance
Full Changelog: v0.1.3...v0.1.4