Fixing broken size of scaled images

Size of original image will be taken into account where the scaled size should be used when calling applyFilter.
This fixes this.
This commit is contained in:
aggrosoft 2012-07-25 13:24:45 +03:00
parent 89402af132
commit ce86c0470c

View file

@ -225,7 +225,7 @@
canvasEl.width = imgEl.width;
canvasEl.height = imgEl.height;
canvasEl.getContext('2d').drawImage(imgEl, 0, 0);
canvasEl.getContext('2d').drawImage(imgEl, 0, 0, imgEl.width, imgEl.height);
this.filters.forEach(function(filter) {
filter && filter.applyTo(canvasEl);