diff --git a/src/shapes/Image.js b/src/shapes/Image.js index d17ef485..7338d012 100644 --- a/src/shapes/Image.js +++ b/src/shapes/Image.js @@ -125,15 +125,16 @@ } else { filterCanvas = this.filterCanvas = new Kinetic.SceneCanvas({ - width: width, - height: height + width: width, + height: height, + pixelRatio: 1 }); } context = filterCanvas.getContext(); try { - this._drawImage(context, [image, 0, 0, width, height]); + this._drawImage(context, [image, 0, 0, filterCanvas.getWidth(), filterCanvas.getHeight()]); imageData = context.getImageData(0, 0, filterCanvas.getWidth(), filterCanvas.getHeight()); filter.call(this, imageData); context.putImageData(imageData, 0, 0);