No description
Find a file
2026-07-30 15:46:45 -06:00
docs Initial scaffold 2026-06-29 15:47:56 -06:00
.gitignore Initial scaffold 2026-06-29 15:47:56 -06:00
AGENTS.md docs: remove jerboa-emacs restriction 2026-07-30 15:46:45 -06:00
LICENSE Switch to MIT license 2026-07-21 13:42:17 -06:00
README.md Initial scaffold 2026-06-29 15:47:56 -06:00

jerboa-image

jerboa-image defines the image data contract used by Jerboa apps and Rust/WASM helpers.

The first consumer is the SFB SSD reviewer. The goal is to avoid OpenCV and NumPy while keeping image operations deterministic and easy to test.

Image Contract

{
  "width": 1224,
  "height": 1584,
  "channels": 4,
  "format": "rgba8",
  "source": "browser-canvas"
}

Native helpers may also use rgb8; browser/WASM helpers should accept rgba8 directly from Canvas ImageData.

Responsibilities

  • RGB/RGBA pixel access.
  • RGB to HSV conversion.
  • Cropping and coordinate transforms.
  • Optional PNG/JPEG decode for native test tools.
  • Optional PNG encode for cached browser assets.

Dependency Rule

The Android default path must not depend on OpenCV, Qt, MuPDF, Poppler, or Python. Rust crates are acceptable when they can build as static CLI tools or WASM modules and do not pull GUI stacks.