| Welcome, Guest |
You have to register before you can post on our site.
|
| Latest Threads |
Déformation par "Cage"
Forum: General questions
Last Post: Bart Simpson
27 minutes ago
» Replies: 5
» Views: 170
|
Average colour in GIMP - ...
Forum: Extending the GIMP
Last Post: Ofnuts
Yesterday, 08:57 PM
» Replies: 5
» Views: 284
|
Plugins with Gimp 3.2 RC1...
Forum: General questions
Last Post: rich2005
Yesterday, 08:10 PM
» Replies: 1
» Views: 157
|
Isse with applying Layer ...
Forum: General questions
Last Post: rich2005
Yesterday, 08:21 AM
» Replies: 1
» Views: 147
|
Batcher - Batch Image Pro...
Forum: Extending the GIMP
Last Post: chuckhenrich
12-01-2025, 10:51 AM
» Replies: 7
» Views: 8,474
|
plugin-py3-export-all
Forum: Extending the GIMP
Last Post: Ofnuts
12-01-2025, 08:19 AM
» Replies: 6
» Views: 468
|
pencil don't have full co...
Forum: General questions
Last Post: rich2005
11-30-2025, 08:03 PM
» Replies: 4
» Views: 3,482
|
Pasting a layer group wit...
Forum: General questions
Last Post: teapot
11-29-2025, 04:06 AM
» Replies: 2
» Views: 264
|
Can the gradient tool be ...
Forum: General questions
Last Post: CmykStudent
11-28-2025, 01:14 PM
» Replies: 6
» Views: 468
|
Gimp 2.10.30 Text alignme...
Forum: General questions
Last Post: sallyanne
11-27-2025, 11:13 AM
» Replies: 1
» Views: 215
|
|
|
| changing active layers |
|
Posted by: salamander017 - 01-29-2023, 06:54 AM - Forum: Scripting questions
- Replies (9)
|
 |
Hello all. I just got into gimp and also have very little knowledge in scripting.
I have 2 black and white files with little difference.
I want to compare them using gimp.
For the process, I import the 2 files in different layers.
Then, using color exchange, I change the black to blue in one layer.
Then change black to red in the other layer.
The blending for the second layer will be multiply.
My script below gets an error when setting the second layer active I think.
(define (script-fu-set-active-layers image layer)
(let* (
(layer-list (gimp-image-get-layers image))
(layer1 (car layer-list))
(layer2 (cadr layer-list))
)
(gimp-image-set-active-layer image layer1)
(plug-in-exchange RUN-NONINTERACTIVE image layer 0 0 0 255 0 0 0 0 0)
(gimp-image-set-active-layer image layer2)
(plug-in-exchange RUN-NONINTERACTIVE image layer 0 0 0 0 0 255 0 0 0)
)
(gimp-displays-flush)
)
Thank you very much.
|
|
|
| image with various objects |
|
Posted by: Daddaj - 01-28-2023, 07:44 AM - Forum: General questions
- Replies (6)
|
 |
Hello everyone
I am new to Gimp. I am not familiar with much of the terms so I couldn't research my question. I hope someone here will help me.
What is called an image with various objects of the same theme? I suppose such objects are meant for extraction as separate images to be used singularly. If so, how to do that using gimp?
Thank you a lot
Daddaj
|
|
|
| Python Fu - mkdir not working |
|
Posted by: BaconWizard17 - 01-27-2023, 03:52 AM - Forum: Scripting questions
- Replies (6)
|
 |
Hi all, I've got another Python-Fu question. I'm trying to set up a script for exporting a file. As part of that, I want to create a new folder for the output if it doesn't exist. Here's the code:
Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
from gimpfu import*
def folderCheck(filePath, newFolder):
filePath.append(newFolder)
outFolder = "/".join(filePath)
outFolderExists = os.path.exists(outFolder)
if outFolderExists == False:
os.mkdir(outFolder)
return outFolder
def exportPNG8(image, layer):
filePath = pdb.gimp_image_get_filename(image)
filePathSplit = filePath.split("/")
fileName = filePathSplit[-1]
outFolder = folderCheck(filePathSplit[0:-1], "PNG8")
register(
"python_fu_marvelmods_export_png8",
"Exports a texture to PNG8 format.",
"Exports a texture to PNG8 format.",
"BaconWizard17",
"BaconWizard17",
"January 2023",
"Export as PNG8",
"*",
[
(PF_IMAGE, "image", "Input image", None),
(PF_DRAWABLE, 'drawable', 'Layer, mask or channel', None)
],
[],
exportPNG8,
menu='<Image>/Marvel Mods/Export Textures/By Texture Format'
)
main()
Everything here is functional except for the part that creates the new folder. I don't have a function for exporting the image right now. My plan was to work on that after I got the folder creation part figured out. I tested the folderCheck function outside of GIMP in regular Python (with some expected inputs), and it worked completely fine and created the expected folder. Here's that test code for comparison, which worked flawlessly:
Code:
import os
def folderCheck(filePath, newFolder):
filePath.append(newFolder)
outFolder = "/".join(filePath)
outFolderExists = os.path.exists(outFolder)
if outFolderExists == False:
os.mkdir(outFolder)
return outFolder
filePath = "C:/Users/ethan/Desktop/Test.xcf"
filePathSplit = filePath.split("/")
fileName = filePathSplit[-1]
outFolder = folderCheck(filePathSplit[0:-1], "PNG8")
Does GIMP just not have permissions to create a new folder, does this function not work in GIMP, or is there something else going on here?
Edit: Something I thought of: Is creating the folder even necessary? Or will GIMP automatically create a folder if it doesn't exist for export?
|
|
|
| Trouble Opening Gimp |
|
Posted by: Charles Page - 01-24-2023, 02:31 PM - Forum: OSX
- No Replies
|
 |
Good Morning, I recently downloaded Gimp to learn image editing (I have used PS in the past...poorly but I found it worked when I needed it) and to use for my personal projects/business. After downloading and installing the 2.10.32 version directly for Intel on my 2016 Macbook Pro (running Catalina) I had no problems with the drag and drop method of installation. When I click on the Gimp icon the program acts like it is opening but it just stalls out and force quit ends up saying that the program is not responding. This is after some time (setting the computer aside and waiting for the application to open). Have I missed something? Is there some step that I am not completing to run the software? Thank you guys.
Any help would be greatly appreciated!
|
|
|
| GIMP3-ML install in gimp version 2.99.14 |
|
Posted by: rilla - 01-23-2023, 05:26 PM - Forum: Windows
- No Replies
|
 |
Im trying to install GIMP3-ML on windows 10 ive downloaded the file from github and extracted it i installed python 3.10 and i downloaded the weights but i confused on what to do with the weights and the extracted GIMP3-ML i need help im also using gimp version 2.99.14
|
|
|
|