mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
* Use craft-heif from craft-libs; remove crates/heif PhotoCraft's HEIF decoder had drifted from LightCraft's by about 700 lines; both now use craft-heif (storytold/craft-libs#784), built from LightCraft's copy. HEIC colours now follow the HEVC VUI's range and matrix and libheif's chroma upsampling. 8-bit files still open as 8-bit documents; a colour description the VUI specifies now tags the image as an nclx did. The codecs -> heif standalone exception ends with the local crate, and the HEIF nextest step drops -p photocraft-heif, which no longer exists. * Pin craft-heif to the merge of storytold/craft-libs#794 * heif: count the decoder's 16-bit buffer against max_alloc * heif: match Apple's chroma upsampling; pin craft-heif to storytold/craft-libs#799 * heif: free the decoder's buffer before the HDR conversion and count that conversion's peak * heif: hold the canvas the decoder really allocates to max_alloc
PhotoCraft Documentation
PhotoCraft is a native image editor written in Rust. This book is the maintained entry point for installation, architecture, formats, automation, development, and security documentation.
The repository's existing docs/ directory remains authoritative for detailed design notes, parity reports, UI conventions, release procedures, and the complete control-protocol method reference. The book links to those documents instead of copying them.
Start here
- Users and evaluators: Installation
- Contributors: Building and Contributing
- Architecture work: Architecture overview
- Agents and automation clients: Automation overview
- Security-sensitive work: Security overview and Threat model
Documentation for coding agents
Coding agents should read the following in order:
AGENTS.mdfor repository rules and verification gates.README.mdfor product scope and current entry points.book/src/architecture/for crate boundaries and command flow.book/src/automation/before driving the CLI, control protocol, or MCP server.book/src/security/before changing a parser, file I/O, automation, MCP, the control server, command execution, or serialization/deserialization.
Agents must treat document bytes, paths, command parameters, and automation messages as untrusted input. A page that describes a proposed control does not mean that control is implemented.
Status language
Security pages use four labels consistently:
- Implemented: behavior confirmed in current source or tests.
- Known limitation: an exposed risk or missing control in current source.
- Proposed: a design direction that is not enforced by the current build.
- Future hardening: useful follow-up work without an accepted implementation yet.