I am trying to stretch the background image so it can fit the canvas size. But its not working.
I have followed this question and based on comment i have implemente
Hi please update following code.
img.set({ width: canvas.getWidth(), height: canvas.getHeight(), originX: 'left', scaleX : canvas.getWidth()/img.width, //new update scaleY: canvas.getHeight()/img.height, //new update originY: 'top' });
http://jsfiddle.net/8vLo882n/6/