mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-07 10:54:10 +00:00
Resolve against main's save restructure (Services::save_file/SaveCtl, scratch-integrity checks, ZipWriter::with_entries, exact encoded_len): - PSD/PSB saves stream the file model through atomic_write_stream_progress; the length used for progress and reservations is main's exact encoded_len (the PR's size_bound under-counted lazy data); export_with/encode_with share checked_stages, so main's scratch checks (previews included) still refuse unreadable scratch. - Drop ZipWriter::for_entries in favour of main's with_entries. - TIFF: take_from_psd moves layer data out of the export's own model (never the document); body() reserves its exact length, failures are OutOfMemory (not LimitExceeded, which would trigger the PSB retry). - Streaming writer: AlreadyExists from the writer is a failed save, not a name collision. - Remove dead Vec put_widened_rle; channel_data_len is test-only.