diff --git a/src/js/components/ImageEditor/ImageTransformationHandler.js b/src/js/components/ImageEditor/ImageTransformationHandler.js index 5c4f949..b705c44 100644 --- a/src/js/components/ImageEditor/ImageTransformationHandler.js +++ b/src/js/components/ImageEditor/ImageTransformationHandler.js @@ -2,7 +2,7 @@ function ImageTransformationHandler(img) { var _transformations = { - mirrored: false + mirrored: 0 }; /** @@ -54,7 +54,7 @@ function ImageTransformationHandler(img) { this.set = function (name, args) { switch (name) { case 'mirror': - _transformations.mirrored = (img.flipX = args); + _transformations.mirrored = (img.flipX = args) ? 1 : 0; } img.setCoords().canvas.renderAll();