Skip to content

image-codecs: preserve PNG HDR colour metadata and PQ output - #4

Draft
dylanmtaylor wants to merge 163 commits into
codex/photocraft-format-libraryfrom
codex/png-hdr-cicp
Draft

dylanmtaylor wants to merge 163 commits into
codex/photocraft-format-libraryfrom
codex/png-hdr-cicp

Conversation

@dylanmtaylor

@dylanmtaylor dylanmtaylor commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Preserve PNG cICP and cLLI through the shared craft-image-codecs image/metadata APIs and PNG reader/writer.
  • Add encode_png_pq for linear-light Rec. 2020 F32 RGB, writing 16-bit BT.2100 PQ samples, cICP, and measured content-light values.
  • Reuse the shared image-codec facade introduced by Add shared image codec facade storytold/craft-libs#1171.

Upstream storytold#1171 merged as ecee6933. The canonical upstream draft is now storytold/craft-libs#1249, based on current main. This fork-local draft is retained only as the original stacked validation record; it is not the merge target.

Validation

  • Original branch checks: Ubuntu passed; Windows and macOS checks are still running on the refreshed branch.
  • Canonical image-codecs: preserve PNG HDR metadata and PQ output storytold/craft-libs#1249 checks are running on current upstream main.
  • Prior exact-code local evidence: cargo fmt --all -- --check, Clippy, and focused HDR tests passed. The focused HDR tests cover CICP/CLLI roundtrip and PQ code values/content-light metadata.

…ft-libs into codex/photocraft-file-caps-svg-fix
…ft-libs into codex/photocraft-file-caps-svg-fix
…ipt-numeric-operators

craft-eps: share PostScript numeric operators
craft-prc: rebuild compressed tessellations whose normals are recalculated (storytold#778)
…format-library

Add shared image codec facade
…e-caps

Add shared format capability catalog
…psd-zlib-stream

PSD: expose incremental zlib stream encoding
…nal-part-fallback

craft-docx: keep conventional parts without relationships
feat(anicraft-format): extract native JSON envelope
…geometry

craft-idml: strict bounded path geometry reader
…s-metadata-cutover

image-codecs: delegate metadata edits to craft-metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant