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

Render and resize for web display? #299

Closed
DarthSonic opened this issue May 26, 2021 · 2 comments
Closed

Render and resize for web display? #299

DarthSonic opened this issue May 26, 2021 · 2 comments
Labels

Comments

@DarthSonic
Copy link

Type of issue

[ ] Bug
[x ] Question (e.g. about handling/usage)
[ ] Request for new feature/improvement

Expected Behavior

Current Behavior

Possible Solution (optional)

Steps to Reproduce (for bugs)

Your Environment

ASP.NET MVC

Currently I am using QRCode class and resize the Bitmap of GetGraphic method. Then I place the BMP as Base64 image on webpage.

Problem is: The QRCode gets blurry when resizing to 96x96px.

How can it be done with high quality render?

@saxmaster79
Copy link

saxmaster79 commented Sep 1, 2021

Maybe you could use the SvgQRCode-Renderer?

@codebude
Copy link
Owner

codebude commented Sep 1, 2021

Hi @DarthSonic ,

Either use the SvgRenderer as suggested or if you want to stick to bmp, try to set the pixelsPerModule parameter when calling the GetGraphic method. By setting the parameter to a small value, the qr code graphic gets smaller and thus should blur too much, when resized.

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

No branches or pull requests

3 participants