Skip to content

QR Code Rendering issue #1638

@Mohammadwasifbalti

Description

@Mohammadwasifbalti

Bug Report

QR Code Rendering issue in PNG Format Image

Description of the problem

I'm having issues showing QR Code which is in PNG format, There are some unexpected white dots are showing on multiple points of QR Code Image, Also for this case Height Attribute is not working correctly,
Result is shown below:
Image

Code sample

const imgRes = await fetch(orderItem?.qrcode);
const imgBuffer = await imgRes.buffer();

doc.image(imgBuffer, pageWidth - 170, y + 5, {
width: 150,
height: 250,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions