Skip to content

Visual regression check - #8

Merged
micschk merged 2 commits into
mainfrom
visual-regression
Oct 12, 2026
Merged

micschk merged 2 commits into
mainfrom
visual-regression

Conversation

@micschk

@micschk micschk commented Oct 12, 2026

Copy link
Copy Markdown
Member

Fixture, pdfinfo geometry + pdftopng pixel comparison against per-platform baselines; CLI compare between strategies. Linux baselines to be added from the first CI run's artifact.

… or host fonts

Renders an mm-exact fixture (tests/Visual/fixture) and compares page count and page sizes
(pdfinfo) exactly and each page's pixels (pdftopng at 100 dpi, GD) with committed per-platform
baselines. PHPUnit group 'visual' with must-fail controls (smart shrinking on, zoom 1.02, 4 px
margin, Letter paper), and a CLI that also compares two strategies or binaries directly.
macOS baselines from the bundled binary; Linux baselines to come from CI. xpdf-static as
require-dev; CI runs the group in its own step and uploads diffs on failure.
Bundled Linux binary on Ubuntu 24.04 (CI run 38245001852); the PHP 8.1 and 8.4 renders are
byte-identical. Mm-placed elements land on the same pixels as on macOS; only text differs.
@micschk
micschk merged commit b50aa60 into main Oct 12, 2026
4 checks passed
@micschk
micschk deleted the visual-regression branch October 12, 2026 11:52
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