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

Setting output size? #107

Open
syntaqx opened this issue May 8, 2024 · 3 comments
Open

Setting output size? #107

syntaqx opened this issue May 8, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@syntaqx
Copy link

syntaqx commented May 8, 2024

I realize I'm able to set the QRWidth using:

standard.WithQRWidth(255)

However, how can I specify that I want a total image output of say, 1024x1024?

@syntaqx syntaqx added the question Further information is requested label May 8, 2024
@yeqown
Copy link
Owner

yeqown commented May 9, 2024

If I understand you correctly,1024x1024 means the output image pixels size, however it's not able to be limited since your input content would be oversized, so we don't provide such an option yet. @syntaqx

@syntaqx
Copy link
Author

syntaqx commented May 9, 2024

Yes, I'm referring to the output image's pixel size. I want to use your library, as I was previously using https://github.com/skip2/go-qrcode, which allowed me to simply do:

var png []byte
png, err := qrcode.Encode("https://example.org", qrcode.Medium, 1024)

Any plans to make this feature?

@yeqown
Copy link
Owner

yeqown commented May 10, 2024

it's not a complicated feature, would you make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants