From 4742d22fb35b91911c9d7448a025dad9813b2eaa Mon Sep 17 00:00:00 2001 From: Ibrahem alnumman Date: Tue, 23 May 2023 02:34:32 +0300 Subject: [PATCH] fix big croped image size --- control/design/index.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/control/design/index.html b/control/design/index.html index f8d7542..0c03a58 100644 --- a/control/design/index.html +++ b/control/design/index.html @@ -20,6 +20,8 @@ @@ -74,7 +76,7 @@
+ - + @@ -84,7 +86,7 @@
+ - + @@ -95,7 +97,7 @@
+ - + @@ -105,7 +107,7 @@
+ - + @@ -366,14 +368,14 @@ } }; - $scope.cropImage = function (url, width, height) { + $scope.cropImage = function (url, width, height, dividedBy) { if (!url) { return ""; } else { let croppedImage = buildfire.imageLib.cropImage( url, - { width, height }); + { width: width / dividedBy, height: height / dividedBy }); return croppedImage } };