diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c index 6e02cdd1b0..54fbb8c8bb 100644 --- a/app/pdb/plug-in-compat-cmds.c +++ b/app/pdb/plug-in-compat-cmds.c @@ -3397,11 +3397,15 @@ plug_in_plasma_invoker (GimpProcedure *procedure, GIMP_PDB_ITEM_CONTENT, error) && gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error)) { - GeglNode *node; - gint x, y, width, height; + GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable)); + GeglNode *node; + gint x, y, width, height; gimp_item_mask_intersect (GIMP_ITEM (drawable), &x, &y, &width, &height); + if (! gimp_channel_is_empty (gimp_image_get_mask (image))) + x = y = 0; + node = gegl_node_new_child (NULL, "operation", "gegl:plasma", "seed", seed, @@ -6373,8 +6377,8 @@ register_plug_in_compat_procs (GimpPDB *pdb) gimp_procedure_add_argument (procedure, g_param_spec_double ("radius", "radius", - "Radius of gaussian blur (in pixels", - 0.0, 500.0, 0.0, + "Radius of gaussian blur (in pixels)", + 0.0, 1500.0, 0.0, GIMP_PARAM_READWRITE)); gimp_procedure_add_argument (procedure, g_param_spec_boolean ("horizontal", @@ -6475,8 +6479,8 @@ register_plug_in_compat_procs (GimpPDB *pdb) gimp_procedure_add_argument (procedure, g_param_spec_double ("radius", "radius", - "Radius of gaussian blur (in pixels", - 0.0, 500.0, 0.0, + "Radius of gaussian blur (in pixels)", + 0.0, 1500.0, 0.0, GIMP_PARAM_READWRITE)); gimp_procedure_add_argument (procedure, g_param_spec_boolean ("horizontal", @@ -9021,13 +9025,13 @@ register_plug_in_compat_procs (GimpPDB *pdb) g_param_spec_double ("spread-amount-x", "spread amount x", "Horizontal spread amount", - 0, 200, 0, + 0, 512, 0, GIMP_PARAM_READWRITE)); gimp_procedure_add_argument (procedure, g_param_spec_double ("spread-amount-y", "spread amount y", "Vertical spread amount", - 0, 200, 0, + 0, 512, 0, GIMP_PARAM_READWRITE)); gimp_pdb_register_procedure (pdb, procedure); g_object_unref (procedure); @@ -9483,7 +9487,7 @@ register_plug_in_compat_procs (GimpPDB *pdb) g_param_spec_double ("wavelength", "wavelength", "The Wavelength of the Waves", - 0.1, 50, 0.1, + 0.1, 1000, 0.1, GIMP_PARAM_READWRITE)); gimp_procedure_add_argument (procedure, g_param_spec_boolean ("type", diff --git a/pdb/groups/plug_in_compat.pdb b/pdb/groups/plug_in_compat.pdb index d156768886..0bdc78a499 100644 --- a/pdb/groups/plug_in_compat.pdb +++ b/pdb/groups/plug_in_compat.pdb @@ -1508,8 +1508,8 @@ HELP desc => 'Input image (unused)' }, { name => 'drawable', type => 'drawable', desc => 'Input drawable' }, - { name => 'radius', type => '0.0 <= float <= 500.0', - desc => 'Radius of gaussian blur (in pixels' }, + { name => 'radius', type => '0.0 <= float <= 1500.0', + desc => 'Radius of gaussian blur (in pixels)' }, { name => 'horizontal', type => 'boolean', desc => 'Blur in horizontal direction' }, { name => 'vertical', type => 'boolean', @@ -1583,8 +1583,8 @@ HELP desc => 'Input image (unused)' }, { name => 'drawable', type => 'drawable', desc => 'Input drawable' }, - { name => 'radius', type => '0.0 <= float <= 500.0', - desc => 'Radius of gaussian blur (in pixels' }, + { name => 'radius', type => '0.0 <= float <= 1500.0', + desc => 'Radius of gaussian blur (in pixels)' }, { name => 'horizontal', type => 'boolean', desc => 'Blur in horizontal direction' }, { name => 'vertical', type => 'boolean', @@ -3384,11 +3384,15 @@ HELP GIMP_PDB_ITEM_CONTENT, error) && gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error)) { - GeglNode *node; - gint x, y, width, height; + GimpImage *image = gimp_item_get_image (GIMP_ITEM (drawable)); + GeglNode *node; + gint x, y, width, height; gimp_item_mask_intersect (GIMP_ITEM (drawable), &x, &y, &width, &height); + if (! gimp_channel_is_empty (gimp_image_get_mask (image))) + x = y = 0; + node = gegl_node_new_child (NULL, "operation", "gegl:plasma", "seed", seed, @@ -4411,9 +4415,9 @@ HELP desc => 'Input image (unused)' }, { name => 'drawable', type => 'drawable', desc => 'Input drawable' }, - { name => 'spread_amount_x', type => '0 <= float <= 200', + { name => 'spread_amount_x', type => '0 <= float <= 512', desc => 'Horizontal spread amount' }, - { name => 'spread_amount_y', type => '0 <= float <= 200', + { name => 'spread_amount_y', type => '0 <= float <= 512', desc => 'Vertical spread amount' } ); @@ -4910,7 +4914,7 @@ HELP desc => 'The Amplitude of the Waves' }, { name => 'phase', type => '-360 <= float <= 360', desc => 'The Phase of the Waves' }, - { name => 'wavelength', type => '0.1 <= float <= 50', + { name => 'wavelength', type => '0.1 <= float <= 1000', desc => 'The Wavelength of the Waves' }, { name => 'type', type => 'boolean', desc => 'Type of waves: { 0 = smeared, 1 = black }' }, diff --git a/plug-ins/script-fu/scripts/distress-selection.scm b/plug-ins/script-fu/scripts/distress-selection.scm index ef87b7926d..753e325ab3 100644 --- a/plug-ins/script-fu/scripts/distress-selection.scm +++ b/plug-ins/script-fu/scripts/distress-selection.scm @@ -111,7 +111,7 @@ SF-IMAGE "The image" 0 SF-DRAWABLE "The layer" 0 SF-ADJUSTMENT _"_Threshold (bigger 1<-->254 smaller)" '(127 1 254 1 10 0 0) - SF-ADJUSTMENT _"_Spread" '(8 0 1000 1 10 0 1) + SF-ADJUSTMENT _"_Spread" '(8 0 512 1 10 0 1) SF-ADJUSTMENT _"_Granularity (1 is low)" '(4 1 25 1 10 0 1) SF-ADJUSTMENT _"S_mooth" '(2 1 150 1 10 0 1) SF-TOGGLE _"Smooth hor_izontally" TRUE