mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Choosing a JPEG quality is a trade between how the picture looks and how
big the file gets, but the dialog gave no idea of the size. It now shows
it at the left of OK and Cancel ("152.3K", "1.5M"), updated as Quality
and Format Options change.
The size is the file's: the document is encoded in memory with the
settings OK writes (same encoder and ExportSettings as the save, so the
file's own quality, profile and metadata count). The encode runs on a
worker thread in the native app and in the frame on the web; one runs at
a time and its answer is kept per settings, so a frame that changes
nothing encodes nothing, and the last size stays up while a new one is
worked out. Documents over 40 MP (4 MP on the web) read "—".
Docs: gaps (G10), file-format and target-app parity, the scorecard row
and the book drop the size preview from what JPEG Options lacks.
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.