From f9e1d829e93c37bd6c313b4252498a1be00fdd8e Mon Sep 17 00:00:00 2001 From: Howard Ha Date: Fri, 9 Apr 2021 12:16:01 -0700 Subject: [PATCH] allow configuration of imageSmoothingQuality. default is "low", other options are "medium" and "high". Usage: $('#fileupload').fileupload({ disableImageResize: /Android(?!.*Chrome)|Opera/ .test(window.navigator && navigator.userAgent), imageSmoothingQuality: 'medium', } --- js/jquery.fileupload-image.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.fileupload-image.js b/js/jquery.fileupload-image.js index c2056b954..ac0ccf1cc 100644 --- a/js/jquery.fileupload-image.js +++ b/js/jquery.fileupload-image.js @@ -81,7 +81,8 @@ crop: '@', orientation: '@', forceResize: '@', - disabled: '@disableImageResize' + disabled: '@disableImageResize', + imageSmoothingQuality: '@imageSmoothingQuality' }, { action: 'saveImage',