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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,571
» Latest member: Jean Dupont
» Forum threads: 7,447
» Forum posts: 40,704

Full Statistics

Latest Threads
Windows save
Forum: General questions
Last Post: sallyanne
2 hours ago
» Replies: 3
» Views: 275
Trying to append part of ...
Forum: General questions
Last Post: Denarius
Yesterday, 12:26 PM
» Replies: 5
» Views: 284
Can't see GIMP windows
Forum: Gimp 2.99 & Gimp 3.0
Last Post: Tas_mania
Yesterday, 08:57 AM
» Replies: 2
» Views: 171
clone tool
Forum: General questions
Last Post: sallyanne
Yesterday, 12:38 AM
» Replies: 6
» Views: 336
Missing fonts when export...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
06-29-2025, 07:48 AM
» Replies: 8
» Views: 426
Updating Python Scripts t...
Forum: Scripting questions
Last Post: Ofnuts
06-28-2025, 08:58 PM
» Replies: 1
» Views: 178
GIMP 3.0.4 Script-Fu Batc...
Forum: Extending the GIMP
Last Post: AgHornet
06-27-2025, 10:20 AM
» Replies: 0
» Views: 151
Technique for removing ov...
Forum: General questions
Last Post: denzjos
06-27-2025, 09:47 AM
» Replies: 12
» Views: 892
unable to convert from rg...
Forum: General questions
Last Post: rich2005
06-26-2025, 11:42 AM
» Replies: 1
» Views: 226
How to fix halftones?
Forum: General questions
Last Post: rich2005
06-26-2025, 10:57 AM
» Replies: 2
» Views: 272

 
  Script-fu V3 plug-ins
Posted by: programmer_ceds - 02-27-2025, 08:04 PM - Forum: Extending the GIMP - Replies (5)

Just a heads up that if a Script-fu script is implemented as a V3 plug-in you can edit the script file whilst GIMP is running - you don't have to restart GIMP for the changes to take effect. This has been possible with Python scripts for a long time but disappeared when the Refresh Scripts menu option was dropped some time ago. It certainly makes debugging Script-fu scripts much less frustrating :-)

V3 .scm scripts that are plug-ins go into folders with the same names as the first part of the .scm file name (i.e. the part before .scm). These folders then go into the GIMP plug-ins folder, not the scripts folder.

Don't forget to delete the original version of the .scm file from scripts - GIMP complains if there is a plug-in and a script version at the same time.

The following links are useful when making .scm plug-ins - note in particular the use of 

Code:
#!/usr/bin/env gimp-script-fu-interpreter-3.0

at the top of the file

and 
Code:
(script-fu-use-v3)

at the start of the main function.

https://developer.gimp.org/resource/scri...deprecated

https://testing.developer.gimp.org/resou...script-fu/

Print this item

  How to fill a selection with color
Posted by: snowforest - 02-27-2025, 05:51 PM - Forum: General questions - Replies (1)

I select an area, and then with bucket fill I try to fill it with a color I selected before so I apply bucket fill inside the selected area. Sounds simple right? Nope. That is too easy for gimp. It doesn't fill. What am I missing?

Print this item

  How to finish selection process
Posted by: snowforest - 02-27-2025, 05:45 PM - Forum: General questions - Replies (1)

I selected an area . Now I hit escape but the walking ants dont go away. How to tell Gimp that I am done with that selection and I dont want that selection anymore in my life. It just wont go away.

Print this item

  How to simply move selection
Posted by: snowforest - 02-27-2025, 05:37 PM - Forum: General questions - Replies (2)

I select a portion of my image. How can i move JUST that part? After I select, I click move and try to drag it but it drags the whole thing and the selection seems to just float and remain where it is. This is very counterintuitive.

Print this item

  Bucket fill not working
Posted by: rdh61 - 02-27-2025, 05:28 PM - Forum: General questions - Replies (1)

If I try to use bucket fill the bucket cursor carries a circle with a slash through it, and I cannot fill the selected layer. I have ensured that the layer I wish to fill is selected, is not locked, and have tried various places withing the area of the layer. In the attached screenshot, I wish to fill the layer called "Background" with another colour. Please see the screenshot. Thank you.



Attached Files Thumbnail(s)
   
Print this item

  Too much gimp-version is bad for SCM script-fu in gimp 3.0 rc3
Posted by: vitforlinux - 02-26-2025, 03:17 PM - Forum: Gimp 2.99 & Gimp 3.0 - No Replies

[Image: gimp-version.jpg.jpg]

I used to use a string to handle the version change in my SCM script-fu, but things have changed and I have to change the string, anyone who encounters it knows it, now instead of (if instead of 2.10 you find 2.1 it's the same).

Code:
(= (string->number (substring (car(gimp-version)) 0 3)) 2.10)

you have to use

Code:
(not (defined? 'gimp-drawable-filter-new))

gimp-drawable-filter-new exists only in new Gimp 3.0 rc3.

A collection of fixed ScriptFu can be found here:
https://github.com/vitforlinux-gimp/scm/...es/tag/3.0

Print this item

  Just Erase the Background or Create a Transparency - Is There a Difference?
Posted by: Connolly Music Creations - 02-26-2025, 09:08 AM - Forum: General questions - Replies (4)

Here is what I have and what I'm trying to do:

- I have an old band photo and want to remove the background.
- I want to put the 'new and improved' image into a music video (just the band - no background).
- That image/the band will be floating around the screen, maybe on top of a static image of clouds or something.
- I'll be using Open Shot Video Editor if that makes any difference.

So to get just the band, can I just erase the background or do I need to create a transparency?  Is there a critical difference between the two? Or it just depends on what you want to do?  Is there a best way to do it?

Print this item

  Save & Export?
Posted by: theDrake - 02-25-2025, 12:22 PM - Forum: General questions - Replies (1)

Hi all,
I'm new here, so please bear (bare?) with me...

I've just started using GIMP after many many years of Photoshop CS 5.5. I never updated past that because I really don't need a lot of bells and whistles.

On to new business...

Is there any reason why the Save/Save as... dialog can't have a drop-down for other file types? it's a nice touch that in version 3.0 they've introduced a dialog that asks if I'd like to be taken to the Export dialog, but this seems like an unnecessary step when both saving and exporting could easily be handled in the same dialog.

I was searching for other software that supports the GIMP file format, but I can't find any. Have I missed one? two? more? Because if no one else supports it besides GIMP, is there an artist-oriented reason for its existence?

Sorry if I'm stepping on toes or blundering around like the proverbial bull in a china shop, but I just can't help wondering about these things considering that every other graphics application I've used has the above-mentioned file format drop-down and doesn't support GIMP file format.

Thank you for taking the time to read (and hopefully, kindly) response. I have to admit, it makes me a bit nervous to say these things while that angry face icon on the left watches my every move.

Print this item

  scriptfu could says what values to be expected
Posted by: estatistics - 02-24-2025, 07:53 PM - Forum: Scripting questions - Replies (2)

scriptfu could says what values to be expected instead of saying only
"Error: Invalid value for argument 1"
Moreover it can provide an example how to set the arguments in a variable.
eg. (file-webp-export  1 0 0 0 a.jpg b.jpg) can save a as b with these numberd arguments means ...  


How to export all my jpg images as webp using gimp in linux bash in batch?

gimp -i  -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "DSC_0978.JPG"))))(file-webp-export RUN-NONINTERACTIVE image "DSC_0978.webp" lossless include-exif include-xmp))' --batch-interpreter="plug-in-script-fu-eval"

I cant understand what arguments must put in which positions. Script fu menu for file-webp-export has a lot! Whcih of these are essential and in what positions?


When using
Code:
gimp -i  -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "DSC_0978.JPG"))))(file-webp-export RUN-NONINTERACTIVE image "DSC_0978.webp"))' --batch-interpreter="plug-in-script-fu-eval"


it says
Code:
(script-fu:457680): scriptfu-WARNING **: 14:16:06.586: Missing arg type: GimpExportOptions
(script-fu:457680): scriptfu-WARNING **: 14:16:06.586: Calling Plug-In PDB procedures with arguments as an ordered list is deprecated.
Please use named arguments: (file-webp-export #:run-mode 1 #:image 1 #:file DSC_0978.webp)
batch command executed successfully


but when using
Code:
gimp -i  -b '(let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "DSC_0978.JPG"))))(file-webp-export run-mode "1" image "DSC_0978.webp" 100))' --batch-interpreter="plug-in-script-fu-eval"

it says
Code:
 batch command experienced an execution error:
Error: eval: unbound variable: run-mode
Stopping at failing batch command [0]: (let* ((image (car (gimp-file-load RUN-NONINTERACTIVE "DSC_0978.JPG"))))(file-webp-export run-mode "1" image "DSC_0978.webp" 100))

Print this item

  Can not make bookmarks for image folder
Posted by: JaBo - 02-24-2025, 07:35 PM - Forum: Installation and usage - Replies (4)

I have a dual boot set up (Windows 11/Ubuntu 24.04) with Gimp 2.10.38.
In GIMP on my Ubuntu OS I want to make a bookmark for the my images folder (not sure of the English Windows folder name) on the Windows drive. I can access this folder in the open dialogue but if I want to bookmark it, the bookmark option is greyed out. Note that I can make bookmarks for other folders on the Windows drive.

Print this item