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
Provide a size property to resize the qr code #6
Comments
It gets resized automatically if it needs that |
can I resize the img for display purpose? |
No it gets resized depending on the amount of data you are encoding but if you need to resize it just for display we'll make sure to add that? |
yes just for display, because the original image is quite small if the content is not long enough. |
@techiediaries if you can point me on the right path, I will try to start a PR to get this feature added. |
Hi @mautematico how? do u have any specific question? i.e is it about building the component or code? |
Hi @nathanccleung . `styles.css`
.test-class > img {
width: 200px;
}
`your element`
<ngx-qrcode
[qrc-element-type]="'img'"
[qrc-value] = "'resize the QR code'"
qrc-class = "test-class"
qrc-errorCorrectionLevel = "L">
</ngx-qrcode> |
@techiediaries @Dark-Midnight On changing styles, the qr code looks blur if its size is increased. Any chance that |
An option to generate a High Resolution Image will be great. |
@techiediaries Could you please reopen this issue? I ran into the same issue as @uzumakinaruto123 and I would very much appreciate it if you added a HighRes option as @gerard2p suggested. |
@gerard2p @marcburkhardt If you still looking for an answer, I have found a hack. Basically, more the length of data string |
Size also varies depending upon |
@uzumakinaruto123 @marcburkhardt I actually write a custom component and my app based on this so i could actually modify the parameters that are send to QRCode.toDataURL If anyone is interested I can make that component available to everyone. |
@gerard2p would like to check it! |
@gerard2p will like to check the component. |
@ Dark-Midnight |
please share whats the work around you have done @gerard2p |
Any update ? Changing size in CSS creates blurred image |
I am facing the same issue. Any workaround ? |
Also trying to change the size, if possible without lowering the img quality, but no success so far. The work-around posted above with changing attributes for IMG in css isn't working for me. Help is appreciated. |
To set width just add [width]="250" |
No description provided.
The text was updated successfully, but these errors were encountered: