usr bin env python put in gimp-2 plug-ins from gimpfu import def texti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# put in ~/.gimp-2.6/plug-ins
from gimpfu import *
def textify(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()
pdb.gimp_image_rotate(img, 2) # ccw
register(
"python_fu_textify",
"Photography of text is cleared from background",
"Photography of text is cleared from background",
"Vsevolod Solovyov",
"Vsevolod Solovyov",
"2009",
"<Image>/Filters/Enhance/_Textify...",
"RGB*, GRAY*",
[
],
[],
textify)
main()