Search code examples
reactjsnpmhtml-to-image

How to remove blur effect in image generated by html-to-image


I'm using an npm dependency html-to-image in my react app.

When I try to generate the image, the result of the generated image has some blur effect.

can somebody explain to me how to increase the image quality or give me an alternative, please?


Solution

  • I found a way to correct the problem. just increase the pixelRatio option in the configuration of render and it will increase image quality