Skip to content

test: pin graphics and image output to its ISO clauses - #765

Merged
Tim81 merged 10 commits into
mainfrom
test/conformance-audit-g4
Nov 29, 2026
Merged

Tim81 merged 10 commits into
mainfrom
test/conformance-audit-g4

Conversation

@Tim81

@Tim81 Tim81 commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

What

Pins what the v2.4 graphics and image features write to the clauses they claim: the image factories and the PNG, JPEG, BMP, GIF, TIFF, JBIG2 and JPEG 2000 loaders, LayoutImage.FitToPage, note block and band rule colours, and the word spacing of justified lines. Test-only and docs-only: no change under src/.

  • ConformanceAuditG4Tests (298 cases, 14 of them skipped gap cases) in tests/VellumPdf.Kernel.Tests.
  • Section G4 of docs/conformance-v2.4.md: 53 rows, 32 compliant, 15 gap, 3 not applicable, 3 human-only.

Gaps

Filed: #763, #764, #768, #769 and #770 (the JPX baseline feature set). Known issues cited: #474, #621, #303, #583. Each gap has a test that pins today's output; where a fix's output is known, a skipped test asserts it (#474 has none).

Mutations

Eight mutants of src, each killed by a named test. One of them, the colour space of a soft-mask image, passed every oracle and was killed only by the direct assertion.

Gates

Release build with 0 warnings. ConformanceAuditG4*: 298 total, 0 failed, 14 skipped on net10.0 and net11.0 with REQUIRE_ORACLES=1. Format, clean-room and roadmap checks pass.

Image dictionaries and soft masks of every loader, colour key masks,
output-intent matching of device colours, FitToPage matrices, note block
and band rule colour operators, and word spacing of justified lines, each
asserted on the written keys and operands and checked with veraPDF, qpdf
and poppler where they have a rule. Gaps have a pinning test of today's
output and a skipped test of the output the clause needs.
Add the rows and pins the review found (PNG colour key bits, JPEG precision,
JP2 files of two channels and with a bpcc box, JPX Part 2), cite 8.9.3 and
7.4.9 for the dictionary rows, split the TIFF rows into associated alpha and
orientation, turn the #474 test into a pin, correct the citations and the
counts, and tighten the band rule, poppler and acceptance assertions.
Accept a refusal or a file veraPDF passes in the JPEG 2000 acceptance tests,
give the bpcc fixture channels of different depths, add the CIEJab row, pin
and acceptance test, move the ReduceToEight note out of the count, add a
skipped test for #303, and correct the #474, #770 and JBIG2 rows.
@Tim81
Tim81 merged commit d78e148 into main Nov 29, 2026
4 checks passed
@Tim81
Tim81 deleted the test/conformance-audit-g4 branch November 29, 2026 17:15
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