Welcome, Guest |
You have to register before you can post on our site.
|
|
|
Add Transparent Window to Existing |
Posted by: DestructZero - 07-13-2024, 04:12 PM - Forum: General questions
- Replies (3)
|
 |
I've searched all over and I can't seem to find the answer to my question. I have a PNG image of an airplane fuselage with two windows that are transparent. All I want to do is to add a third window between them, and I can't make it work. I've read that I need to create a new layer and 'Add Alpha Channel' but that option is greyed out. I also read that if I do Windows --> Dockable Dialogs --> Channels and see 'Alpha' as an option (which is there) that means the Alpha Channel has already been added, which I guess makes sense because there are already two 'windows' on the image that are transparent.
With that information, could someone please walk me through the steps to create a third window that will be transparent? The online videos and help I've found show me how to remove the background around a part of an image to make it transparent, but that's not what I need in this case.
Thank you very much for your help!
|
|
|
Fill by line art with perfect edges on a B&W image or vice-versa |
Posted by: PixLab - 07-13-2024, 05:58 AM - Forum: Tutorials and tips
- No Replies
|
 |
No method is wrong, but some time I see convoluted methods to bucket fill with line art detection when there is a BackGround, where it can be extremely simple to bucket fill with line art detection and get perfect edges even with a BG.
Thus I'll show you one simple way without deleting any BackGround, no selection, no mode change in your tool settings.
GIMP has a layer mode in which we are interested, it's the Multiply mode for white BG or its opposite Screen mode for black BG
Get you image in GIMP, then:
- Create a new white layer (if the BG is white), and put it at the bottom
- Create a transparent layer above the white layer
- Put the top layer (original image) in Multiply mode (Screen mode for black BG)
- Bucket fill by line art the transparent layer
Done, perfect edges!
|
|
|
How do I use the non-legacy version of Emboss from Python-fu? |
Posted by: weanoob - 07-10-2024, 03:49 AM - Forum: Scripting questions
- Replies (3)
|
 |
(07-10-2024, 01:12 AM)weanoob Wrote: I'm writing a script that involves the use of emboss to create a specific effect. When I try
it uses the legacy emboss effect. How can I use the non-legacy version from python?
(I was told to post this in Extending the GIMP, then saw this subforum and decided to start it here instead.)
|
|
|
Eraser not working but it's not the "empty clipboard brush"-problem |
Posted by: qsu - 07-07-2024, 07:44 PM - Forum: General questions
- Replies (4)
|
 |
Hi, I was successfully using the eraser tool to softly erase various layer's contents for about an hour. Then something happened and the eraser tool stopped doing anything now on my current project image.
What I've tried:
- (dead end?) this Gimp-Forum thread and this official documentation both suggest I might be stuck on the "Clipboard" brush, with no clipboard contents.
I've checked this and am quite sure I'm not on that brush. To be double sure I've explicitly picked a bunch of different brushes back and forth ("clipboard", "basic", "basic, sketch", etc) and toggling into and out of these brushes,.... none of these selections causes a change in "does nothing"-behavior
- (dead end?) saved my work, and closed/re-opened gimp: same behavior.
- (lead?) started a new gimp canvas with two layers: background color, and a transparent layer atop that with lots of dark pencil lines on top. voila I can erase pencil marks again! I have no idea what's different about my other XCF file that's causing it problems though...
- (lead?) found a web result about "alpha layer" being on, but toggling this didn't change anything. or maybe I don't understand what an alpha layer is and how it relates...
Any ideas what setting/problem I might be having in my current project file? #3 and #4 might be leads, but I just don't know enough right now to know what to try next.
---
I'm on GIMP 2.10.38
I should clarify that I'm also certain that I've selected the layer I'm expecting an action on. The layer I have selected, if made visible/invisible (eye-icon) then indeed the content I'm trying to modify is the content that flashes on the screen.
another update: lead #4: I double-checked what alpha channel does for eraser tool (in my test file) and proved to myself that I undersatnd how alpha channel vs. background-selection impacts eraser tool. I'm still unable to cause anything to happen on my main file though.
interestingly: my main file is having this problem on any layer I try to erase on, not just one. So it's probably(?) not just a matter of some weird alpha channel setting on single layer.
ah I think I solved it! but the solution doesn't make any sense.
I tried to reproduce the "clipboard" problem by cutting something out of a layer, watching it appear among the brushes, then selecting one of the normal brushes just like I had before, and now my eraser works. But per my "thing I tried #1" I was already on a normal brush....
So I have NO idea what happened. Bug maybe? Anyway, just ... glad I solved it. I hope this helps someone else!!
|
|
|
Batch Crop to Content |
Posted by: gmpuser - 07-07-2024, 08:42 AM - Forum: Extending the GIMP
- Replies (9)
|
 |
GIMP has a great feature where you can go to Image, Crop to Content.
Is there any way to Batch process this for many images so it crops and then saves the file? I have tried the plugin BIMP but this is not an option.
I believe you can create custom scripts but I do not know how to do this.
Thank you for any help you can provide.
|
|
|
Script not importing in Linux Mint 21 |
Posted by: live4soccer7 - 07-07-2024, 01:15 AM - Forum: Extending the GIMP
- Replies (2)
|
 |
I have gone to python-fu console and ran print gimp.directory and received the location for the plug-ins to be added: /home/live4soccer7/.var/app/org.gimp.GIMP/config/GIMP/2.10/
I created a subdirectory of plug-ins
/home/live4soccer7/.var/app/org.gimp.GIMP/config/GIMP/2.10/plug-ins/ofn-export-layers-cumulative.py
I have never used gimp python-fu and am new to gimp in general. I am moving over from photoshop, but I need to create a script to export images from an xcf file. I figured I would get the above script added just to get the flow and see if I can't modify it or use it as a template to create my own. My script would be rather simple, hopefully.
Select a layer, export jpeg at 90%
deselect previous layer and select a different layer, export jpeg at 90%
and so on and so forth.
Regardless, that's a moot point until I can get a script to show up. I'm not sure what I'm doing wrong.
I have Python 2.7.18 installed and confirmed when checking from terminal.
python-fu shows this:
GIMP 2.10.38 Python Console
Python 2.7.18 (default, May 3 2024, 11:47:46)
[GCC 13.2.0]
Thank you for any help in getting me going on this. I'm sure I'm overlooking something simple.
Do I need to make the python script executable or is there a permission issue?
|
|
|
|