pwambach / angular-canvas-painter

Angular.js directive to paint on a canvas on desktop or touch devices
MIT License
116 stars 35 forks source link

Fixing background image size #29

Open sajan45 opened 8 years ago

sajan45 commented 8 years ago

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.

pwambach commented 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