Skip to content

Releases

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 13:32
v0.6.0
15ce262

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-rs is now the only Python package, and its wheels always include PNG/JPEG and Drawing.raster(). pjsekai-scores-rs-skia-image is deprecated: its 0.6.0 release contains no code and only depends on pjsekai-scores-rs>=0.6.0, so existing requirements keep working. Replace it with pjsekai-scores-rs>=0.6.0 in 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 the system-fonts cargo feature to keep a system-font fallback. (#39)
  • The skia-image cargo feature is removed. PNG/JPEG output is the new opt-in image feature (tiny-skia); the default features stay the parser and SVG renderer. Enable image (and system-fonts for the system-font fallback) where you used skia-image. The crate-level API keeps its names (score_to_skia_png, SkiaDirectError, SkiaRasterOutput, ...); the pjsekai_scores_rs::skia_direct module path is gone. (#39)
  • The pjsekai-scores-rs binary now needs the new opt-in cli feature, so the library no longer depends on clap. A plain cargo install pjsekai-scores-rs installs nothing; install the CLI with cargo install pjsekai-scores-rs --features cli,image. (#39)
  • Drawing.raster() now returns RGBA pixels: RasterImage.color_type is always "rgba8888" (premultiplied), where the Skia build returned "bgra8888" on most platforms. Code that reads the buffer must follow color_type instead of assuming BGRA. (#39)
  • PngEncoder, score_to_skia_png_with_encoder and the PJSEKAI_SCORES_PNG_ENCODER environment variable are removed, as there is one PNG encoder now. (#39)

Added

  • Add the opt-in image cargo 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-fonts cargo feature that resolves CSS font families, including generic ones such as sans-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 cli without image builds an SVG-only CLI, which stops with a message to rebuild with --features cli,image when 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 png crate 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.0 and pass fonts in font_paths / font_dirs. Remove any FreeType or fontconfig workaround for the old Skia wheel (for example, relinking its bundled FreeType). Uninstall pjsekai-scores-rs-skia-image once nothing requires it.
  • pip only: upgrading the 0.5 pjsekai-scores-rs-skia-image wheel in place (pip install -U pjsekai-scores-rs-skia-image) deletes the pjsekai_scores_rs module, because removing the old wheel's files also removes the ones pjsekai-scores-rs just installed. Run pip uninstall pjsekai-scores-rs-skia-image before upgrading, or pip install --force-reinstall --no-deps pjsekai-scores-rs afterwards. uv and fresh environments are not affected.
  • Rust: replace features = ["skia-image"] with features = ["image"]. Library and wasm builds without it no longer need --no-default-features, and the library no longer pulls in clap.
  • CLI: use the release binaries, or cargo install pjsekai-scores-rs --features cli,image (add system-fonts for 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-image 0.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 clap from 4.6.6 to 4.6.7 and wasm-bindgen from 0.2.127 to 0.2.129. (#37)
  • Bump pyo3 from 0.29.0 to 0.29.2. (#20)
  • Bump clap from 4.6.1 to 4.6.6. (#21)
  • Bump regex from 1.12.4 to 1.13.1. (#15)
  • Bump serde_json from 1.0.150 to 1.0.151. (#18)
  • Bump wasm-bindgen from 0.2.126 to 0.2.127. (#22)
  • Bump actions/setup-python from 6 to 7. (#17)
  • Bump astral-sh/setup-uv from 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

Choose a tag to compare

@github-actions github-actions released this 13 Jul 08:49
v0.5.0
c91e985

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 the skia-image feature, 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-image for image output). 1e97f21

Added

  • Add a wasm feature that exposes the parser, timing APIs, rebase, lyric parser and SVG renderer to JavaScript through wasm-bindgen. It works on in-memory strings (Score.fromSus(), Score.fromJson(), Score.load()) and does not include Skia image output. Build it with wasm-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. Requires pjsekai-scores-rs-skia-image or a build with the skia-image feature. c91e985

Performance

  • Encode PNG output with the multithreaded mtpng encoder by default. c91e985

Upgrade notes

  • Set PJSEKAI_SCORES_PNG_ENCODER=skia to go back to Skia's PNG encoder, and PJSEKAI_SCORES_PROFILE=1 to 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, or pip install pjsekai-scores-rs-skia-image==0.5.0 for PNG/JPEG output
  • Rust crate: pjsekai-scores-rs = "0.5.0" on crates.io
Maintenance
  • Bump serde_json from 1.0.149 to 1.0.150. (#2)
  • Bump skia-safe from 0.97.0 to 0.97.2. (#3)
  • Bump skia-safe from 0.97.2 to 0.99.0. (#9)
  • Bump pyo3 from 0.28.3 to 0.29.0. (#5)
  • Bump regex from 1.12.3 to 1.12.4. (#7)
  • Bump wasm-bindgen from 0.2.122 to 0.2.125. (#6)
  • Bump wasm-bindgen from 0.2.125 to 0.2.126. (#10)
  • Bump astral-sh/setup-uv from 8.1.0 to 8.2.0. (#4)
  • Bump astral-sh/setup-uv from 8.2.0 to 8.3.0. (#11)
  • Bump actions/checkout from 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

Choose a tag to compare

@watagashi-uni watagashi-uni released this 23 May 15:04
6a38f06

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-seconds option and the target_segment_seconds field of DrawingConfig. 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 Python target_segment_seconds argument and the Drawing::new parameter 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, or pip install pjsekai-scores-rs-skia-image==0.4.4 for 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

Choose a tag to compare

@MejiroRina MejiroRina released this 17 May 14:18
v0.4.3
0a6d955

Speeds up Skia image rendering when custom fonts are configured.

Performance

  • Cache typefaces loaded from font_paths and font_dirs for 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, or pip install pjsekai-scores-rs-skia-image==0.4.3 for 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

Choose a tag to compare

@MejiroRina MejiroRina released this 17 May 13:35
v0.4.2
652e006

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-path and --font-dir options (both repeatable) and the Python font_paths and font_dirs arguments. 652e006

Fixed

  • Read the CSS font-family declarations, 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, or pip install pjsekai-scores-rs-skia-image==0.4.2 for 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

Choose a tag to compare

@MejiroRina MejiroRina released this 17 May 11:57
v0.4.1
7e63439

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 --perf flag. 7e63439

Fixed

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, or pip install pjsekai-scores-rs-skia-image==0.4.1 for 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

Choose a tag to compare

@MejiroRina MejiroRina released this 16 May 18:18
v0.4.0
6a65615

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 (default auto), and Python adds Score.open_sus(), Score.open_json(), Score.from_json(), Score.from_dict() and Score.load(). 6a65615
  • Add Python score_to_svg(), score_to_png(), score_to_jpg() and score_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, or pip install pjsekai-scores-rs-skia-image==0.4.0 for 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

Choose a tag to compare

@MejiroRina MejiroRina released this 16 May 16:40
cabefee

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-image feature. The CLI picks the format from the -o extension (.svg, .png, .jpg, .jpeg), and --jpeg-quality sets JPEG quality (default 90). cabefee
  • Add Python Drawing.png(), Drawing.jpg() and Drawing.jpeg(), plus sus_to_png(), sus_to_jpg() and sus_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 (default png). For Skia output, --note-host can 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

Choose a tag to compare

@MejiroRina MejiroRina released this 25 Apr 01:41
30c83ea

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
Maintenance

Full Changelog: v0.1.4...v0.2.0

v0.1.4

Choose a tag to compare

@MejiroRina MejiroRina released this 25 Apr 01:11
9f0d2c7

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.css stylesheet, 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
  • Update crates, including clap 4.6.1 and pyo3 0.28.3. 33878cb
  • Publish to PyPI with uv publish instead of maturin upload. 15e6c49, 416b86e
  • Fix the Linux wheel build matrix for free-threaded interpreters. 4cded16, eba5c48, b1e21b3, b6f75be
  • Update actions/setup-python to v6. 98e0cdc

Full Changelog: v0.1.3...v0.1.4