def textify_divide img ly2 img active_layer copy img add_layer ly2 pdb

1
def textify_divide(img): ly2 = img.active_layer.copy() img.add_layer(ly2) pdb.plug_in_gauss_rle(img, ly2, 100, 1, 1) ly2.mode = DIVIDE_MODE img.flatten() def textify_edges(img, radius=10, max_delta=25, amount=2): ly = pdb.gimp_image_get_active_layer(img) pdb.plug_in_sel_gauss(img, ly, radius, max_delta) pdb.plug_in_edge(img, ly, amount, 1, 5) pdb.gimp_invert(ly)