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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,957
» Latest member: AndrewAmale
» Forum threads: 7,712
» Forum posts: 41,940

Full Statistics

Latest Threads
Gimp 3 path tool auto con...
Forum: General questions
Last Post: CmykStudent
36 minutes ago
» Replies: 5
» Views: 328
How to make contours in G...
Forum: General questions
Last Post: denzjos
Yesterday, 07:10 PM
» Replies: 2
» Views: 139
Has anyone tried getting ...
Forum: Extending the GIMP
Last Post: vitforlinux
11-22-2025, 04:32 PM
» Replies: 2
» Views: 240
What exactly tutorials ar...
Forum: General questions
Last Post: sallyanne
11-22-2025, 06:44 AM
» Replies: 6
» Views: 628
Gimp 3.0.6 Python plug-in...
Forum: Scripting questions
Last Post: Scallact
11-21-2025, 09:15 PM
» Replies: 8
» Views: 390
Beginner question on Laye...
Forum: General questions
Last Post: sallyanne
11-21-2025, 01:42 AM
» Replies: 2
» Views: 292
How to transform a layer ...
Forum: General questions
Last Post: Scallact
11-20-2025, 09:10 PM
» Replies: 9
» Views: 526
Issue with Gradient Flare...
Forum: General questions
Last Post: ldd2
11-19-2025, 10:24 PM
» Replies: 5
» Views: 424
Wall Of Fractal Featuring...
Forum: Gallery
Last Post: Tas_mania
11-19-2025, 08:43 PM
» Replies: 0
» Views: 183
Text Editor hardly ever w...
Forum: General questions
Last Post: sallyanne
11-19-2025, 01:29 PM
» Replies: 6
» Views: 638

 
  Python Fu
Posted by: DoggoOfSpeed - 06-07-2023, 12:03 PM - Forum: Scripting questions - Replies (3)

Tried to create my first script to save all open files and while it works, I've encountered a strange issue.

Code:
#!/usr/bin/env python

# Author: DoggoOfSpeed

from gimpfu import *
import os


def save(image, path):
   for layer in image.layers:
       image_name_clean = os.path.splitext(
           os.path.basename(image.filename))[0]
       full_path = os.path.join(path, image_name_clean + '.xcf')
       pdb.gimp_xcf_save(0, image, layer, full_path, full_path)


def save_all(path_type, custom_path, x, y):
   open_images = gimp.image_list()

   for single_image in open_images:
       location = os.path.dirname(single_image.filename)
       location_parent = os.path.dirname(location)
       if x == 0:
           save(single_image, location)
       elif x == 1:
           if not os.path.exists(location + "/Saved"):
               os.mkdir(location + "/Saved")
           save(single_image, location + "/Saved")
       elif x == 2:
           if not os.path.exists(location_parent + "/Saved"):
               os.mkdir(location_parent + "/Saved")
           save(single_image, location_parent + "/Saved")
       elif x == 3:
           save(single_image, y)
       single_image.clean_all()


register(
   "save_all",
   "Save All",
   "Saves all opened images",
   "DoggoOfSpeed",
   "DoggoOfSpeed",
   "2023",
   "<Image>/Save All Images",
   "RGB*, GRAY*",
   [
       (PF_OPTION, "path_type", "Save Path", 0, ("Next to Original",
        "In Sibling Folder", "In Parent", "In Custom Folder")),
       (PF_DIRNAME, "custom_path", "Custom Path", os.getcwd())
   ],
   [],
   save_all)

main()
For some reason, the function save_all() receives 4 arguments instead of the 2 requires (I added the variables x and y to accommodate that). Not only that, those variables actually contain the data from the PF_Option (in y) and PF_Dirname (in x) when I'd expect them to be in path_type and custom_path respectively. So my question is why and how do the 2 unwanted parameters appear there?

Print this item

  Resynthesizer
Posted by: pastor - 06-07-2023, 08:57 AM - Forum: OSX - Replies (2)

I have downloaded and installed the resynthesizer plugin on my MacOS Ventura 13.4, but it does NOT show under Filter > Enhence. You can see that the files are in the plugin folder, but they don't show up in the app menu. Does anyone know what's going on? Please help!



Attached Files Thumbnail(s)
   
Print this item

  Why don’t my custom palettes persist?
Posted by: tomory - 06-06-2023, 07:05 PM - Forum: General questions - Replies (6)

Hi, everyone,

I created a custom palette for a design I’m creating but when I quit and reopen The Gimp, it’s not in the list. This has happened twice in a row now. Do I need to do something special to make Gimp save my custom palette?

It’s not a huge deal because my design has only five colors in it. Still, it’s inconvenient to have to keep recreating it.

(I’m using Gimp 2.10.34 revision 1 on Mac OS Ventura.)

Thanks.

Print this item

  why is delboy getting more replies than me?
Posted by: jpcmg5t - 06-03-2023, 04:38 PM - Forum: Gimp-Forum.net - Replies (4)

favritism?

but he posted his one 1 hour after me yesterday and he already get 7 replies, and I only get 2 replies which one of them was from me. that's not fair.[Image: 47gDpTeOagk7.png?o=1]

Print this item

  photo enhance
Posted by: Delboy - 06-02-2023, 08:58 PM - Forum: General questions - Replies (10)

Sorry everyone but gimp newbie post here!...how do you convert a photo into a sports type photo as shown in attachment, not the background etc just the main image in foreground?



Attached Files Thumbnail(s)
   
Print this item

  How can I overwrite .blp files in GIMP?
Posted by: jpcmg5t - 06-02-2023, 07:33 PM - Forum: General questions - Replies (3)

Hello, I like to play this game called Speedy Eggbert.

I wanted to mod this game using GIMP, but the files are all in .blp format instead of .png. GIMP allows me to open the files and edit them, but it doesn't let me overwrite them. I have another program called XNView which allows me to overwrite the files. but I much prefer using GIMP than XNView as I'm familiar, know how to use all the editing tools and find it easy. And copying the files from GIMP to XNview is too time consuming.

So if XNView can overwite .blp files, then why can't GIMP do it? And is there an extension that can allow me to do this?

Print this item

  Part of image cut off
Posted by: sl60 - 06-02-2023, 01:24 AM - Forum: General questions - Replies (3)

I was just working on a large image (site plan ), saved it, and when I opened it again Gimp had cut off the left side of the image and doubled a portion of the right side. Is there any way to restore this? I can't show it because of copyright issues.

Print this item

  Layers missing
Posted by: sl60 - 06-02-2023, 12:52 AM - Forum: General questions - Replies (4)

The layers panel is there but as I work on various layers the layers are not displaying in the panel--itt just show the base layer and the copy of it that I made.
How to fix?

Print this item

  Using gimp as an external editor with lightroom
Posted by: michael coomber - 06-01-2023, 01:25 AM - Forum: General questions - Replies (2)

Hi there.

I use lightroom as my initial editor and also was using photoshop.  I would like to use gimp but I am having trouble understanding exactly how to set up gimp as my external editor.  Please help.

thanks
Michael

Print this item

  Unsupported file in TV
Posted by: jozefosus - 06-01-2023, 12:04 AM - Forum: General questions - Replies (2)

Hello Everyone,
All my edited photos are not played on the TV and are marked as an unsupported file. I use Windows 11 and Gimp 2.10.34. Does anyone have a solution? Thank you

Print this item