Skip to content

Rastermill 0.3.0

Choose a tag to compare

@steipete steipete released this 26 May 20:08
· 8 commits to main since this release
v0.3.0
19be07c

Rastermill 0.3.0

Changes

  • Add transparency(input) for alpha-channel and transparent-pixel inspection across common raster formats.
  • Add execution: "auto" | "internal" | "external" so callers can keep work in-process, force native tools, or use automatic fallback.
  • Collapse writing into encode(input, options?) for exact formats, auto format choice, dimension limits, and byte-budget search.
  • Remove the documented encodeWithinBytes export; migrate encodeWithinBytes(input, { maxBytes, ...options }) to encode(input, { maxBytes, ...options }).
  • Add metadata policy controls: transformed outputs strip metadata by default; no-op within-limit auto encodes preserve original bytes unless callers pass metadata: "strip".
  • Improve default byte-budget searches so small dimension limits can keep downscaling without explicit search.maxSide.
  • Keep Photon loading lazy, including default-instance and external-execution paths.
  • Expand docs for transparency, execution modes, metadata behavior, and unified encode.

Verification

  • Local: pnpm check
  • Local: pnpm test (57 tests)
  • Local: pnpm build
  • Local: pnpm docs:check
  • Local: npm pack --dry-run
  • GitHub CI: CI run 26471848289 passed for commit 19be07c04392cfd26397ef9acdd6322cfe127a09.

npm