Files
vectorcraft/crates/render/src
dotCooCoo 9597392c45 PSD export: slices are written, so an opened PSD's slices survive an export
A PSD export now writes image resource 1050 in version 6 of the PSD file
format specification's slices resource format, the form that Import
Slices reads (crates/engine/src/cmd/fileio/psdslices.rs, version_6).
Flat and layered exports both carry it.

- The user and object slices that reach into the exported artboard are
  written, clipped to it in its pixels, at least one pixel each way.
  Auto slices are left out; opening the file lays them out again.
- An object slice is written as a user slice over its object's bounds,
  and an HTML Text slice as No Image with its type's text as HTML. Name,
  type, link, target, message, alternative text, cell text and
  background color are kept; text alignment is written as the default.
- Slice IDs count from 1.
- More than 10000 slices or a text longer than 65536 characters is an
  export error, matching the reader's limits. A slice without finite
  bounds, or slices that would make the resource longer than 4 GB, is
  also an export error; the size is checked before each text is added.
2026-11-15 15:07:09 -08:00
..