Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Can the embedded image be rectangular? #368

Open
NonContradiction opened this issue Aug 8, 2024 · 0 comments
Open

Can the embedded image be rectangular? #368

NonContradiction opened this issue Aug 8, 2024 · 0 comments

Comments

@NonContradiction
Copy link

I love this library, but I've been trying to embed a rectangular image and can't figure out how to do so (or if it's possible). If I pass a path to a rectangular image file the qrcode will stretch the image so that it becomes a square but looks deformed; on the other hand, I've figured out how to add white space to my rectangular image so that the image itself appears like normal, but then there's white space that looks bad. I've seen the recent commit about the embeded_image_ratio parameter, but that doesn't change the image's own height/width ratio, and I can't find any Issues or Pull requests on this specific idea.

Is there a way to embed a rectangle so that a rectangle appears in the final qr image?

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

No branches or pull requests

1 participant