You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated dompdf recently (to v3.1.0) and this started happening to our QR codes. I assume the root cause is something in this lib, so I'm reporting the issue here.
EDIT: Upon further debugging, it seems this is due to the elliptical arcs used to render the circles. They somehow get rendered wrong. Since the arcs here were just supposed to be round anyway, replacing them with simple curves makes it render correctly.
The text was updated successfully, but these errors were encountered:
jonaslm
changed the title
Eyes in QR code get slanted/mangled
Eyes in QR code get slanted/mangled (elliptic arcs are rendered incorrectly?)
May 13, 2025
I guess they are at least consistently rendered poorly? I'll take a look and see if I can identify where things are going wrong in the interpretation of the instruction.
Hello
Updated dompdf recently (to v3.1.0) and this started happening to our QR codes. I assume the root cause is something in this lib, so I'm reporting the issue here.
Here's what the QR codes now look like:
and what they usually look like:
The PDF:
example_qrcode_bug.pdf
The SVG:
EDIT: Upon further debugging, it seems this is due to the elliptical arcs used to render the circles. They somehow get rendered wrong. Since the arcs here were just supposed to be round anyway, replacing them with simple curves makes it render correctly.
The text was updated successfully, but these errors were encountered: