mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-29 20:37:24 -06:00
real_before_parameters picked Photoshop's order (real mask first) whenever the record length fit the parameter-flags byte at offset 36, even when that byte was just part of the real rectangle. A density-only record in the spec's order then read its density as the real mask's background and lost the parameter. When both orders fit, Photoshop's reading now has to be plausible (background 0 or 255, known parameter flag bits) or the spec's reading with a real mask wins. Co-authored-by: wstock <1394687+wstock@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>