Set min blur amount to 1, add status message for gaussian blur.

This commit is contained in:
j433866 2019-03-04 11:47:50 +00:00
parent 7975fadfe9
commit 7b6062a4a2

View file

@ -32,7 +32,8 @@ class BlurImage extends Operation {
{ {
name: "Blur Amount", name: "Blur Amount",
type: "number", type: "number",
value: 5 value: 5,
min: 1
}, },
{ {
name: "Blur Type", name: "Blur Type",
@ -59,6 +60,8 @@ class BlurImage extends Operation {
image.blur(blurAmount); image.blur(blurAmount);
break; break;
case "Gaussian": case "Gaussian":
if (ENVIRONMENT_IS_WORKER())
self.sendStatusMessage("Gaussian blurring image. This will take a while...");
image.gaussian(blurAmount); image.gaussian(blurAmount);
break; break;
} }