mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-24 13:13:44 +00:00
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:
parent
89402af132
commit
ce86c0470c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue