Welcome, Guest |
You have to register before you can post on our site.
|
|
|
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
at the start of the main function.
https://developer.gimp.org/resource/scri...deprecated
https://testing.developer.gimp.org/resou...script-fu/
|
|
|
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?
|
|
|
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.
|
|
|
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?
|
|
|
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.
|
|
|
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))
|
|
|
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.
|
|
|
|