Is there a way to adjust the size of the image displayed here?:
var picture = new Image();
picture.src = 'http://www.example.com/images/logo.png';
picture.width = 200; //trying to change the width of the image
$('canvas').css({
background: 'url(' + picture.src + ')'
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<canvas id="myCanvas" width="200" height="100" style="border:1px solid #000000;">
</canvas>