Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,107
» Latest member: julyclinton
» Forum threads: 7,800
» Forum posts: 42,361

Full Statistics

Latest Threads
how to use different font...
Forum: General questions
Last Post: Running_late
1 hour ago
» Replies: 0
» Views: 19
arakne path shapes
Forum: Extending the GIMP
Last Post: MrsP-from-C
8 hours ago
» Replies: 3
» Views: 192
How to apply layer to obj...
Forum: General questions
Last Post: rich2005
Yesterday, 03:59 PM
» Replies: 1
» Views: 110
Selective transparency
Forum: General questions
Last Post: aka
02-04-2026, 03:44 PM
» Replies: 5
» Views: 289
ExifToolGUI and ExifTool ...
Forum: Other graphics software
Last Post: denzjos
02-03-2026, 12:07 PM
» Replies: 12
» Views: 12,917
Can you identify effects/...
Forum: General questions
Last Post: rich2005
02-02-2026, 09:34 AM
» Replies: 11
» Views: 773
GIMP 3.0.8 Installation
Forum: Windows
Last Post: rich2005
02-01-2026, 08:30 AM
» Replies: 2
» Views: 548
Best way to recolor this ...
Forum: General questions
Last Post: rich2005
02-01-2026, 08:25 AM
» Replies: 12
» Views: 1,043
A Search For Missing Belg...
Forum: Watercooler
Last Post: Tas_mania
02-01-2026, 03:18 AM
» Replies: 3
» Views: 1,205
eps file won't open
Forum: General questions
Last Post: rich2005
01-30-2026, 09:26 AM
» Replies: 2
» Views: 310

 
  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

Print this item

  Changing brush size in 2.10
Posted by: Tonto Goldstein - 07-25-2022, 09:14 PM - Forum: General questions - Replies (2)

Double-clicking on the number in brush size doesn't highlight it. What gives?

Print this item

  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)

Print this item

  GIMP 2.10.32, Layer Mode Burn Broken?
Posted by: gasMask - 07-25-2022, 01:50 PM - Forum: General questions - Replies (10)

Hi,
I just installed the latest version of GIMP 2.10.32 on Windows. I was running some tests, and found this broken behavior. Could someone check this out on their system?

1. Load an image into GIMP. I've tried this with both 'png' and 'jpg' file types.
2. Duplicate the layer.
3. On the duplicate layer, apply the default Engrave settings from Filters/Distorts/Engrave....
4. Change the layer mode of the top layer to Burn.



Attached Files Thumbnail(s)
   
Print this item

  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.

Print this item

  How to do 'New from Visible' with path layers ?
Posted by: denzjos - 07-24-2022, 08:51 AM - Forum: General questions - Replies (7)

How can I merge visible paths without losing the original visible path layers (like the image layer option 'New from Visible') ?

Print this item

  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.

Print this item

  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!

Print this item

  Image scaling question
Posted by: Cosmopsis - 07-22-2022, 08:44 AM - Forum: General questions - Replies (1)

Hi, I'm completely new to photo editing and I'm so confused by this problem. Will be very grateful if anyone can explain what's going on!

I'm trying to make image 2 the same width as image 1. The images each individually measure about 45mm, but image 2 is somehow still smaller?

When I cut and paste image 2 onto image 1, it shows as about 25mm, when it was showing as about 45 mm when it was a separate file.

I assume I'm fundamentally misunderstanding something but I have no idea what.

   
   
   

Print this item

  Newbie Help with Undoing Gradients
Posted by: ohiojosh78 - 07-21-2022, 11:15 PM - Forum: General questions - Replies (4)

Hi, my wife and I have started a small pressure washing business and had a logo designed for it. I am happy with the logo design itself but when we had them put on t-shirts, it didn't look good because of the gradient coloring. I have tried to fix the issue myself but I am not familiar with photo editing software and when searching for a fix, I have not been able to find any instructions that I could follow for my particular situation.

I have attached the oridinal psd file. I anyone could help me out or instruct me as to how to turn the gradient green and blue shapes back to solid colors I would be grateful.

Thank you!


https://ibb.co/ZhDwdBK image link

*Tried to attach the original PNG but it isn't taking...

Print this item