@@ -107,9 +107,9 @@ property_int (mradius, _("Radius"), 1)
107107 ui_meta ("role" , "output-extent" )
108108
109109
110- property_double (fixoutline , _ ("Median to fix unwanted pixel outline " ), 50 )
110+ property_double (fixoutline , _ ("Median to fix non-effected pixels on edges " ), 60 )
111111 value_range (50 , 100 )
112- description (_ ("Neighborhood alpha percentile " ))
112+ description (_ ("Due to a bug I can't solve, not all pixels will be effected by inner glow. Median blur solves that problem.' " ))
113113
114114
115115
@@ -126,7 +126,7 @@ property_double (fixoutline, _("Median to fix unwanted pixel outline"), 50)
126126static void attach (GeglOperation * operation )
127127{
128128 GeglNode * gegl = operation -> node ;
129- GeglNode * input , * it , * shadow , * c2a , * white , * color , * nop , * color2 , * eblack , * atop , * median , * median2 , * output ;
129+ GeglNode * input , * it , * shadow , * c2a , * white , * color , * nop , * color2 , * eblack , * atop , * median , * median2 , * in , * nop2 , * output ;
130130
131131 input = gegl_node_get_input_proxy (gegl , "input" );
132132 output = gegl_node_get_output_proxy (gegl , "output" );
@@ -137,6 +137,11 @@ static void attach (GeglOperation *operation)
137137 "operation" , "gegl:gegl" ,
138138 NULL );
139139
140+ in = gegl_node_new_child (gegl ,
141+ "operation" , "gegl:src-in" ,
142+ NULL );
143+
144+
140145 shadow = gegl_node_new_child (gegl ,
141146 "operation" , "gegl:dropshadow" ,
142147 NULL );
@@ -160,10 +165,14 @@ static void attach (GeglOperation *operation)
160165 "operation" , "gegl:nop" ,
161166 NULL );
162167
163- eblack = gegl_node_new_child (gegl ,
164- "operation" , "gegl:color-to-alpha " ,
168+ nop2 = gegl_node_new_child (gegl ,
169+ "operation" , "gegl:nop " ,
165170 NULL );
166171
172+
173+ eblack = gegl_node_new_child (gegl , "operation" , "gegl:color-to-alpha" , "transparency-threshold" , 0.050 , NULL );
174+
175+
167176 median = gegl_node_new_child (gegl ,
168177 "operation" , "gegl:median-blur" ,
169178 NULL );
@@ -214,10 +223,9 @@ gegl_operation_meta_redirect (operation, "string", it, "string");
214223
215224
216225
217-
218-
219- gegl_node_link_many (input , it , nop , shadow , color , atop , eblack , color2 , median , median2 , output , NULL );
226+ gegl_node_link_many (input , nop2 , it , nop , shadow , color , atop , eblack , in , median , median2 , color2 , output , NULL );
220227 gegl_node_connect_from (atop , "aux" , nop , "output" );
228+ gegl_node_connect_from (in , "aux" , nop2 , "output" );
221229
222230
223231}
0 commit comments