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
How to improve the image quality? #310
Comments
I had the same problem, How to improve the image quality? |
A simple trick could be something like:
|
for fixing a display bug with responsive nodes see -> #69 (comment) |
thanks a lot, it's work! |
The scale improves the quality of the image, but also increase the dimensions, but I really need the image with original width and height. Did someone find something helpful in that case? |
Check out this. It might help you. |
Can you explain the meaning of this code? |
awesomee!! thanks |
It applies a css scale tranformation to double the image size before exporting |
Hey can you tell how to implement it and plus can you explain? |
There isn't a lot to tell, this is just an implementation of the function from the docs, with custom dimensions and css styles. It doubles the width/height of the image, and sets a CSS transform:scale to double the dimensions of the images content. When you say, "how to implement" this is it, just add the function exactly as he has it and it will work. Look at the readme if you want more info on how the options parameter is defined. |
This works great for me but when I try to generate the image onto my page it is shifted 50% to the right. So I have 50% of the image just black and then 50% of my image that I wanted.... although the quality of that 50% is great lol. Any ideas? |
A shot in the dark, try:
|
Do you have the |
|
|
The solution brings up another problem -> I find the same open issue here: #323 (comment) @csandman nsequeira87 any ideas? |
你好,你的邮件已收到,我会尽快给您回复。
|
`
|
just write |
你好,你的邮件已收到,我会尽快给您回复。
|
Thanks, this worked.. |
你好,你的邮件已收到,我会尽快给您回复。
|
你好,我已收到你的来信。辛苦了!!
|
domtoimage.toBlob(shareContent).then(function(blob) { FileSaver.saveAs(blob, _this.fileName + '.png') })
Hello, I has a problem,the picture is not really clear. How to improve the image quality? Can you add a option, like scale. We can scale the canvas before render.
The text was updated successfully, but these errors were encountered: