Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

The image generated using qrcode has become corrupted #264

Open
xspio opened this issue Feb 19, 2024 · 1 comment
Open

The image generated using qrcode has become corrupted #264

xspio opened this issue Feb 19, 2024 · 1 comment

Comments

@xspio
Copy link

xspio commented Feb 19, 2024

When a qrcode image is generated using qrcode-rust(https://github.com/kennytm/qrcode-rust) and then inserted into a exist PDF, the qrcode within the PDF becomes unreadable or corrupted

let img = xobject::image("./qrcode.png").unwrap(); doc.insert_image(page_id, img, (100.0, 300.0), (100.0, 100.0)).unwrap();

@Heinenen
Copy link
Collaborator

I cannot reproduce this. I just took the image from the crates' README, and it worked perfectly fine (despite the qr code being stretched to a third of its width).

Could you post extra steps to reproduce?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants