| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,930
» Latest member: Jamesda05
» Forum threads: 7,693
» Forum posts: 41,839
Full Statistics
|
| Latest Threads |
Gimp 3.0.6-1 G'Mic-Qt ups...
Forum: General questions
Last Post: denzjos
10 hours ago
» Replies: 2
» Views: 108
|
Issue with cut selection
Forum: Installation and usage
Last Post: kmll
Yesterday, 11:56 AM
» Replies: 2
» Views: 105
|
Colorized Layer Reverts t...
Forum: General questions
Last Post: Ofnuts
11-10-2025, 09:27 PM
» Replies: 5
» Views: 357
|
How to get G'MIC within G...
Forum: General questions
Last Post: teapot
11-10-2025, 08:04 PM
» Replies: 2
» Views: 240
|
Gimp 3.x scanner xsane pl...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Ofnuts
11-10-2025, 08:36 AM
» Replies: 14
» Views: 11,572
|
Gimp 3.0 get Metadata wit...
Forum: Scripting questions
Last Post: Volker
11-09-2025, 06:19 PM
» Replies: 3
» Views: 275
|
Text Editor hardly ever w...
Forum: General questions
Last Post: Snacko
11-09-2025, 05:13 PM
» Replies: 4
» Views: 368
|
How to make image and mas...
Forum: Installation and usage
Last Post: Ofnuts
11-08-2025, 08:39 PM
» Replies: 5
» Views: 336
|
Multi window mode mode fa...
Forum: General questions
Last Post: teapot
11-07-2025, 01:40 PM
» Replies: 5
» Views: 473
|
Animation with only GIMP ...
Forum: Gallery
Last Post: Scut-51
11-06-2025, 11:49 AM
» Replies: 25
» Views: 23,090
|
|
|
| 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()
|
|
|
|