Skip to content

v0.2.0

Choose a tag to compare

@Lockyc Lockyc released this 02 Oct 00:44
· 15 commits to main since this release

imgkit is now plate. The module path, binary and every name that carried "imgkit" change in this release; nothing under the old name keeps working.

Moving from imgkit

go install github.com/lockyc/plate@latest
plate doctor --install
  • Binary: imgkit → plate. Remove the old one from your Go bin directory.
  • Policy file: imgkit.toml → plate.toml.
  • Environment: IMGKIT_DEVICE → PLATE_DEVICE, IMGKIT_ENGINE_<NAME> → PLATE_ENGINE_<NAME>.
  • Managed engines and caches: ~/.local/share/imgkit → ~/.local/share/plate, ~/.cache/imgkit → ~/.cache/plate (XDG locations respected). Move them to skip a re-download, or let plate doctor --install fetch again.

Fixes since v0.1.0

  • infill and inpaint refuse a source with transparent pixels, and infill refuses a hole wider than its coarsest level reaches, instead of writing a plausible-looking wrong fill.
  • The synthesis policy is checked at dispatch from the command table, so every pixel-synthesising command honours plate.toml the same way.
  • render and fonts check the page load whose result is kept, and leave no stale CSS behind on failure.
  • press accepts 1-bit stencil masks, no longer fails a CMYK image whose pixel bytes look like an RGB operator, and escapes % in output paths so Ghostscript writes the file you named.
  • A dash-led input or output path is passed to engines as a file, not a flag.
  • Float flags refuse NaN and infinity at parse time.
  • ML scripts and the Vision helper share one content-addressed cache.