Open sajan45 opened 8 years ago
Hey, thanks for the PR. Nice feature, but we should make it configurable in the options object as this is a breaking change. Also not everybody wants the background image to be streched or squeezed.
The option name could be e.g. fitImageToCanvas
Cheers
This will set the background image height and width to the size of canvas so that it will not show only a part a of the image if the image is bigger in size than canvas.