mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Photoshop CS2 writes `phfl` version 3 with "4 bytes each for XYZ color". The parser read those values as Lab x100, so real files (L = 241.91) fell back to Unsupported. Read them as D50 XYZ with 1.0 = 32768 (the ICC 16-bit PCSXYZ encoding; the scale is inferred from a real file, the spec does not give it). Writing stays version 2 RGB. Fixes #3777 Co-authored-by: Fabio Lussi <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>