Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
58 minutes ago
» Replies: 2
» Views: 384
|
files missing after insta...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: rich2005
1 hour ago
» Replies: 3
» Views: 203
|
.pcd files issue?
Forum: OSX
Last Post: rich2005
1 hour ago
» Replies: 1
» Views: 38
|
How do I uninstall GIMP 3...
Forum: Linux and other Unixen
Last Post: Ofnuts
Yesterday, 07:02 AM
» Replies: 1
» Views: 253
|
AI Gimp Plugins
Forum: Watercooler
Last Post: merlilderman
09-14-2025, 04:16 PM
» Replies: 21
» Views: 68,633
|
How to make a watermark o...
Forum: General questions
Last Post: kyolim
09-13-2025, 10:05 PM
» Replies: 5
» Views: 14,353
|
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
09-13-2025, 06:06 PM
» Replies: 1
» Views: 629
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
09-13-2025, 05:20 PM
» Replies: 2
» Views: 519
|
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
09-13-2025, 07:53 AM
» Replies: 15
» Views: 12,221
|
Photo play-time
Forum: Gallery
Last Post: Ofnuts
09-13-2025, 07:32 AM
» Replies: 24
» Views: 22,039
|
|
|
Removing Alpha Channel? |
Posted by: david - 07-26-2022, 02:27 PM - Forum: Scripting questions
- Replies (12)
|
 |
I have been trying to write a script to automate colour cast removal.
If an image has transparency it "dilutes" the colour cast I am trying to remove.
When I run the following code
Code:
layerClean = pdb.gimp_layer_new_from_drawable(layer, image) # layer to be cleaned of alpha channel
pdb.gimp_image_insert_layer(image, layerClean, None, 0) # insert layer
pdb.gimp_image_set_component_visible(image, CHANNEL_ALPHA, FALSE) # make alpha channel non-visible
pdb.gimp_layer_flatten(layer) # remove alpha channel
pdb.gimp_image_remove_layer(image, layerClean)
I can look in the channels palette and the alpha channel has gone. In the layers palette I can right-click on the layer and it gives me the option to add an alpha channel. However, if I carry out any action, such as adding a layer, the alpha channel re-appears in the channel palette.
I have tried running the code and then doing a "Save as". On loading the saved file, the alpha channel is again in the layers palette.
I created an xcf file where the alpha channel was filled with 50% grey (7f7f7f Hex) in order to test.
I put this into general queries as the same occurs when the actions are carried out manually.
Operating system: Ubuntu 20.04
GIMP: 2.10.32
|
|
|
GIMP 2.10.32 Python-Fu |
Posted by: alecpepe - 07-25-2022, 07:06 PM - Forum: Scripting questions
- Replies (1)
|
 |
I have successfully written a script, which when ran in the Python-Fu console does what I want. I want to make a keyboard shortcut, so I can run this quickly when necessary, rather than pasting it into the console every time. How should I do this? I've tried writing the code in VS code and saving it in the GIMP scripts folder as both a .py and .scm file. The .scm file raises 'unbound variable: import' when I hit 'refresh scripts' under Script-Fu. I cannot find where to run the script as a .py, but it seems to refresh fine. I also do not know how I would bind a keyboard shortcut to a script.
Here's the code, though I doubt this is the issue as it works fine in the console:
import gimpfu
current_image = gimp.image_list()[0]
layer=pdb.gimp_layer_new(current_image, 1, 1, gimpfu.RGB_IMAGE, "white_layer", 100, gimpfu.NORMAL_MODE)
pdb.gimp_image_add_layer(current_image, layer, 0)
pdb.gimp_layer_resize_to_image_size(layer)
pdb.gimp_item_set_visible(layer, 0)
|
|
|
exporting gimp head |
Posted by: dumbass - 07-24-2022, 05:02 PM - Forum: General questions
- Replies (7)
|
 |
GIMP 2.10.32 was working perfectly. All of a sudden I can't export a head without a black background. I removed GIMP and re-installed. No difference. I'm stumped.
|
|
|
middle of text layer to guide |
Posted by: denzjos - 07-23-2022, 06:26 PM - Forum: Tutorials and tips
- Replies (1)
|
 |
To align the middle of different text layers on different guides (vertical or/and horizontal), press Ctrl and Alt with 'Text Tool' activated, click in a text layer and drag it to a guide or a point where guides intersect. While pressing Ctrl and Alt a little cross appears in the middle of the text layer. This cross snaps to the guides. If the text box has an odd width, then the cross snaps one pixel left or right of the guide. Helps to make a personal time table for street theatre on different places and times for example.
|
|
|
What happened to Drop Shadow filter? |
Posted by: Lubasha - 07-23-2022, 01:00 AM - Forum: General questions
- Replies (2)
|
 |
I used GIMP years ago very actively and was quite happy with that. But I don't understand the one it turned to be now. Icons became smaller, on a black background impossible to see anything without strong magnifier. But the main concern higher versions of GIMP became very uncomfortable to use. I was trying just to make a drop shadow on text and found it is not working. The help I found says 6.7.4. Using Drop Shadow Filter
This GEGL Drop Shadow filter is surprising: if you apply the filter directly to the image as you do with the legacy filter, you get nothing!
and I have to do from 9 to 19 steps to make it work! You guys, who create updates to this software, are going in wrong direction!
I wish to donate for those creating GIMP I used to know, but today's one is so out of touch with people! Please, give me the old GIMP back!
|
|
|
|