fabric.js how to maintain image quality when used as a background and resized to the size of canvas
<p>i have a big image that has a dimensions of 1920x1080, but my current canvas has only a size of 800x600.. scaling the image to the size of the background pixelates/reduces the quality of the image. even when exporting, the image quality is still low.. how do i prevent that from happening?</p>

<pre><code>var background = 'image.jpg';
    canvas.setBackgroundImage(background, canvas.renderAll.bind(canvas), {
                    width: canvas.width,
                    height: canvas.height,
                    originX: 'left',
                    originY: 'top'
                });
</code></pre>