| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,899
» Latest member: Buerre
» Forum threads: 7,955
» Forum posts: 43,283
Full Statistics
|
| Latest Threads |
GIMP for win xp 32 bit pr...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: DibblyDoDar
8 hours ago
» Replies: 15
» Views: 813
|
panorama correction
Forum: Tutorials and tips
Last Post: denzjos
08-13-2026, 08:48 AM
» Replies: 0
» Views: 143
|
resynthesizer 1.0
Forum: Extending the GIMP
Last Post: rich2005
08-13-2026, 07:22 AM
» Replies: 4
» Views: 343
|
Picture Frame Glass Effec...
Forum: General questions
Last Post: sallyanne
08-12-2026, 01:32 PM
» Replies: 6
» Views: 588
|
Resynthesizer for Windows...
Forum: Extending the GIMP
Last Post: rich2005
08-11-2026, 05:19 PM
» Replies: 6
» Views: 34,817
|
Is there a gimp plugin th...
Forum: Extending the GIMP
Last Post: rich2005
08-11-2026, 10:43 AM
» Replies: 10
» Views: 20,625
|
Excellent Tutoriols for b...
Forum: Tutorials and tips
Last Post: rich2005
08-10-2026, 08:30 AM
» Replies: 3
» Views: 451
|
add links for one dot to ...
Forum: General questions
Last Post: saint_m
08-10-2026, 07:44 AM
» Replies: 4
» Views: 449
|
imgur blocked
Forum: Watercooler
Last Post: R Soul
08-09-2026, 12:51 AM
» Replies: 5
» Views: 2,792
|
Layers
Forum: General questions
Last Post: TeckyWalla
08-08-2026, 09:07 PM
» Replies: 2
» Views: 372
|
|
|
| fading text layer |
|
Posted by: mwas - 07-31-2023, 09:39 AM - Forum: Extending the GIMP
- Replies (3)
|
 |
Hi, I am new to this forum so if I my question is in the wrong section, well, sorry I guess!
I have a pdf form to fill like 500 times and I thought using a gimp python plugin is the way to do it. I have developed the said plugin and I can successfully fill the form except that the text layers I am adding are too sharp. Before I save the file manually, I usually use the blur tool to make the text look like it was filled with a pen. I have tried to do this in the plugin but I can't get i right. I am using the gimp.convolve() function. I guess my problem is obtaining the stroke points of the text layer. Can somebody please help me. Thanks.
|
|
|
| several register by python file ? |
|
Posted by: jacques_duflos - 07-25-2023, 07:07 PM - Forum: Scripting questions
- Replies (3)
|
 |
I am doing a script that I want to execute very quickly with a shortcut, or more slowly with a option window. Something similar to "save" (quickly executed with ctrl+s) and "save as ..." (with a window to precise options). How should I do ?
- Should I do two completely separated plug-ins ?
- Or one plug-in with two python files in it (one importing the other I guess) ?
- Or can I put several register function in one python script ?
- other ?
I would say the third option is the best, but as I can't remember having seen such thing anywhere, I wonder if there are habits or rules about that.
The code would look like that :
Code:
from gimpfu import *
def slow_function(image, layer, other, options):
#some code
def quick_function(image, layer):
slow_function(image, layer, defaults, values)
register(
"python-fu-quick-function",
"description",
"description",
"Your Name",
"Your Name",
"2023",
"<Image>/Filters/quick function",
"*",
[],
[],
quick_function)
register(
"python-fu-slow-function",
"description",
"description",
"Your Name",
"Your Name",
"2023",
"<Image>/Filters/slow function ...",
"*",
[
(PF_IMAGE, 'image', 'Image', None),
(PF_OPTION, 'some option')],
(PF_OPTION, 'some other option')]
[],
slow_function)
main()
|
|
|
|