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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,777
» Latest member: Jamesnex
» Forum threads: 7,593
» Forum posts: 41,393

Full Statistics

Latest Threads
How to make a watermark o...
Forum: General questions
Last Post: kyolim
7 hours ago
» Replies: 5
» Views: 13,904
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
11 hours ago
» Replies: 1
» Views: 277
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 05:20 PM
» Replies: 2
» Views: 189
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:53 AM
» Replies: 15
» Views: 11,801
Photo play-time
Forum: Gallery
Last Post: Ofnuts
Yesterday, 07:32 AM
» Replies: 24
» Views: 21,657
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 570
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 233
How do you make text circ...
Forum: General questions
Last Post: rich2005
09-12-2025, 07:18 AM
» Replies: 12
» Views: 3,298
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 2,969
Trouble changing backgrou...
Forum: General questions
Last Post: tomatoSauce23
09-11-2025, 12:50 PM
» Replies: 6
» Views: 1,478

 
  Script Fu process questions.
Posted by: DaltonCalford - 11-25-2022, 08:10 PM - Forum: Scripting questions - Replies (1)

I am trying to automate a simple process, but, I am new to script-fu and trying to get my bearings.
I am going to describe what I am trying to do, where I am failing, and perhaps find an example to what I am trying to do.

The Task
I have an image (myimage.xcf) which has a background layer (256 by 256, RGB, background transparancy)
as well as 200 "mask" layers 

The background image is a texture (think carpet or steel image)

The mask layers have two colors - black and white 


The Process
This script need to run against the currently selected image, non-interactively

For each of the mask layers (named mask1, mask2 etc)
 The script will make a copy of the background layer called "current work"
  Using the current mask, it will select by color (black) switch to the "current work" layer and apply the script-fu-add-bevel 
  The script will then go back to the current mask layer and select by color(white), switch to the "current work" layer and delete the selection 
  The script will then export the "current work" to a png file, delete the "current work" layer and repeat the process for the next mask layer.

The Problem

The thing is, while I know I can refer to layers by number, how do I find a layers ID by name ie
While I can use  (gimp-image-get-active-drawable 1) to get the layer number for the currently selected layer, how do I get the layer number for the layer named "background"?
I can set a layer manually at position 0, but, I can't find instructions on how to switch layers based upon position or to switch layers based upon name.

I wish there was a "recorder" process that just created a script that repeated what the user was doing like a macro, but, I can not find such a thing and it is beyond my ability to write it.

Any guidance on how to associate a layer(items) number based upon it's name or it's position in the layer list, would be appreciated.

Thanks in advance

Print this item

  Change 2 colours to 2 different colours
Posted by: KS_ - 11-25-2022, 03:02 PM - Forum: General questions - Replies (5)

Hello to all,

I need to do the following in GIMP but as fast as possible... as I have to make this change in 900 other files.

Attached photo: Photo
I want the dark red colour to be black and the light red colour to be white and in this way I want to convert it to PNG format... 

If I do it myself, with the pencil I have to click pixel by pixel... is there any way to change the colour faster... because to use it in the machine I need... it only allows black and white PNG.

Thanks!

Print this item

  Layer selected for Move Tool but not Scale Tool?
Posted by: Doofer - 11-25-2022, 10:53 AM - Forum: General questions - Replies (2)

Hi there.

I can use the R-click 'Scale Layer' dialogue fine.


However, if I want to use the mouse to scale it, it seems I have selected the layer as I can use the Move Tool, but when I try to use the Scale Tool, it just puts something 1x3 pixels in the image, suggesting I haven't selected the layer.

Video: https://drive.google.com/file/d/1iFgnzOE...sp=sharing

[Image: huh.png]

Print this item

  Brush Dynamics
Posted by: rich2005 - 11-25-2022, 09:37 AM - Forum: Gimp 2.99 & Gimp 3.0 - Replies (5)

Looking at the paint dynamics in Gimp 2.99.14 , both linux from PPA and Windows, there is no Dynamics OFF. Easy enough to make one but I wonder why it is missing ? Is it on purpose or an omission ?

Ah... answering my own question, there is a enable dynamics tick box in the tool options that is not there in Gimp 2.10

Print this item

  PASTEing one Pic into Another
Posted by: gaystan - 11-24-2022, 11:39 PM - Forum: General questions - Replies (3)

Hi everybody :
  I'm still learning my way around GIMP. When PASTEing a photo 
into an "open" photo (setting the inset photo as a layert),  is there a 
way to "unerase" the layered photo when I make a mistake. In other words,
to "fine tune" ERASEing  the inset image to match the outline of the 
base image ?
garystan
document.oncontextmenu = null; document.body.onpaste = null; document.body.onselectstart = null; document.onselectstart = null; document.ondragstart = null; document.body.oncut = null; document.onmousedown = null; document.body.oncontextmenu = null; document.body.oncopy = null; document.body.ondragstart = null; document.body.onmousedown = null;

Print this item

Shocked Where is the line?
Posted by: Hymer - 11-24-2022, 12:33 PM - Forum: General questions - Replies (2)

I selected the line of a boarder of a country and I made transparent the rest of the image  because I should like to put it onto another map as a layer..
The thumbnail shows how it should look like.    
But if I open the image, is not the same. See bad-map-image.  Shy

Here is the xcf file, what I done.
Where did I go wrong?



Attached Files Thumbnail(s)
   

.xcf   Magyarország térképe.xcf (Size: 36.37 KB / Downloads: 331)
Print this item

Wink I made a fade-in fade-out effect for Gimp with GEGL
Posted by: Tas_mania - 11-24-2022, 08:42 AM - Forum: Extending the GIMP - No Replies

I was looking for a script or plug-in that could make fade-outs. I couldn't find one so made a batch script that uses GEGL.

[Image: GEGL-fade-out-demo.webp]

It needs "sudo apt install gegl"
I want to use this for animated objects with an alpha background but it also works with no alpha channel like above.
For an animated sequence of frames select the last 30 or the first 30 and export them with ofnuts 'Export all layers' to a folder.

On linux run the script in a terminal in the folder like this:
./GEGLfade30Frames.sh

I also use 'pack linked layers', 'Rename layers' and 'Reverse/Mirror layers' to achieve this or to import and use the fade outs.
This script is a sledge hammer approach. It would be better in python with sliders and forward and backwards options.



Attached Files
.zip   GEGLfade30Frames.sh.zip (Size: 417 bytes / Downloads: 280)
Print this item

  Circle select gone
Posted by: Gimpuser12 - 11-24-2022, 06:18 AM - Forum: General questions - Replies (6)

I'm new to Gimp and this kind of software in general. I'm using the clone and healing tools and must've clicked something wrong because now the ability to use either is not working. When I select either tool, there is no circle cursor, just two small crosses or a square targeting with the sides missing. Clicking control doesn't hold either in place. I've tried reseting Gimp to default settings and the issue persists.

Print this item

  Posting
Posted by: gaystan - 11-23-2022, 05:47 PM - Forum: General questions - Replies (5)

Hi everybody :
     What causes "garbage" to be shown under my post ? 
garystan
document.oncontextmenu = null; document.body.onpaste = null; document.body.onselectstart = null; document.onselectstart = null; document.ondragstart = null; document.body.oncut = null; document.onmousedown = null; document.body.oncontextmenu = null; document.body.oncopy = null; document.body.ondragstart = null; document.body.onmousedown = null;

Print this item

  Adding Text
Posted by: gaystan - 11-23-2022, 05:44 PM - Forum: General questions - Replies (2)

Hi eveybody :

       When selecting TEXT>drawing text box on diplay, I notice an "Empty Layer"
keeps showing.  When I type my text, it shows up in the Empty Layer.  But I can't
see the text on the display. I'm trying to add text to a photo.
garystan
document.oncontextmenu = null; document.body.onpaste = null; document.body.onselectstart = null; document.onselectstart = null; document.ondragstart = null; document.body.oncut = null; document.onmousedown = null; document.body.oncontextmenu = null; document.body.oncopy = null; document.body.ondragstart = null; document.body.onmousedown = null;

Print this item