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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,917
» Latest member: subbareddy
» Forum threads: 7,684
» Forum posts: 41,799

Full Statistics

Latest Threads
GIMP 3.04 opens with wind...
Forum: Windows
Last Post: subbareddy
7 hours ago
» Replies: 7
» Views: 3,645
Isolate, select and copy/...
Forum: General questions
Last Post: rich2005
Yesterday, 04:39 PM
» Replies: 7
» Views: 360
"Plug-in crashed" on GIMP...
Forum: General questions
Last Post: skullamrotis
Yesterday, 03:32 PM
» Replies: 4
» Views: 374
AIMAGoR - Artificial IMAg...
Forum: Other graphics software
Last Post: vitforlinux
Yesterday, 12:09 PM
» Replies: 23
» Views: 9,797
RapidRAW
Forum: Other graphics software
Last Post: denzjos
11-03-2025, 12:51 PM
» Replies: 2
» Views: 200
Tutoriel installer Drea...
Forum: Tutorials and tips
Last Post: meric57
11-03-2025, 07:45 AM
» Replies: 0
» Views: 82
Nouveau Arrivant sur le f...
Forum: Watercooler
Last Post: meric57
11-03-2025, 06:45 AM
» Replies: 0
» Views: 82
Accessing GIMP’s internal...
Forum: General questions
Last Post: rich2005
11-02-2025, 12:35 PM
» Replies: 1
» Views: 178
Can't find path plug-in
Forum: General questions
Last Post: programmer_ceds
11-01-2025, 04:47 PM
» Replies: 7
» Views: 475
Gimp shows blank black sc...
Forum: Windows
Last Post: rich2005
11-01-2025, 09:01 AM
» Replies: 1
» Views: 180

 
  What is the correct way to close a python batch job?
Posted by: sethsdad - 03-24-2020, 10:22 PM - Forum: Extending the GIMP - Replies (5)

Hi all,

I've been trying hard to get a batch script converted over from script-fu in Python but I'm struggling to get it to close the process as I can't seem to get it to close GIMP. The script runs but it won't kill the process so is making everything hang. 

I can't seem to find any docs on how to actually do some of this stuff, it seems that those that know, know and I'm not sure how to fill in the gaps in my knowledge. 

Up front I'm new to python but a long in the tooth coder in various other languages.

So my question is, what is the correct way to close GIMP these days?

I'm running GIMP 2.10.18 on Windows 10

This is roughly my command I'm running:

"C:\Program Files\GIMP 2\bin\gimp-console-2.10.exe" -id --batch-interpreter python-fu-eval -b "import sys;sys.path=['.']+sys.path;import mydynamicTextReplace;dynamicTextReplace.process('my_example_param_1')"

So far I've tried (yep I'm in cut and paste "lets see if this works" land at this point):

  1. Adding '-b (gimp-quit 0)' to the end of the command, this was a left over from the script-fu script and I think this fails as I've told it to use the python parser not script-fu?
  2. Adding '-b "pdb.gimp_quit(1)" ' to the end of the command, no luck with this one
  3. Adding '-b "gimp.quit(1)" ' to the end of the command, no luck with this one either
  4. Adding variations of "gimp.quit" and "pdb.quit" to the end of my script that I'm importing but these all seem to have zero effect
Thought and guidance? Are there any docs online about doing this sort of stuff better, it feels way to fumbling around in the dark to me and I've been at this several sessions now.

Many thanks in advance.

Print this item

  Stroke selection antialising on but has hard edge, why?
Posted by: marigolden - 03-24-2020, 07:50 PM - Forum: General questions - Replies (2)

When I select stroke selection i keep on antialising but it's still giving a hard edge, as in there's not that graduated blend of pixels at the edges. Why doesn't it work?

Print this item

  How to get rid of this grid when i try to scale a layer?
Posted by: marigolden - 03-24-2020, 07:14 PM - Forum: General questions - Replies (3)

It's just in the way, I tried defaulting window preferences and restarting yet it still does this



Attached Files Thumbnail(s)
   
Print this item

  How to edit Multiple layers
Posted by: john_brown - 03-24-2020, 06:51 PM - Forum: General questions - Replies (11)

So i was just wondering when you have like 10 images on the right side, i have to go through each image one by one to do want i want to do. I was wondering is there a away using transparency you can edit through all of them at once, like select all but that doesn't work. Thanks

Print this item

  New plugin: Rhodonea
Posted by: Ottia Tuota - 03-24-2020, 06:43 PM - Forum: Extending the GIMP - Replies (4)

Another offshoot of the Parametric curves. Draws rose-like figures.

To get the plugin, go to

http://kmarkku.arkku.net/

follow the link 'Applications', and click the second Download button there. That gives you a .zip file. Unzip it, put the .py file into your Gimp's plug-ins folder, and restart Gimp. The plugin 'Rhodonea' will be in

Filters/Render/Parametric curves/Special cases

If there are any problems, please tell me.

Print this item

  Can only click on some things???
Posted by: HungryHungryHobo2 - 03-24-2020, 03:59 PM - Forum: General questions - No Replies

For whatever reason only certain buttons are clickable...
I can click 'open new project', and i can move around through the folders in the left side bar, but clicking on any of the images doesn't do anything.
Clicking cancel, or 'X' to close the dialogue box also does nothing.
The only way out of this menu is the 'escape' key or 'alt+f4'

I can select some tools, some simply don't respond to being clicked on, i can't actually use the tools though, the clicks on the open image with a tool selected don't do anything.

i can open images by right clicking them and opening with GIMP just fine, but can't edit them because I can only select some of the tools, and once I do my clicking no longer registers and I need to open a new instance of GIMP...

Any ideas what the heck is going on?

EDIT: I Should add that I've been using the program just fine for some time now, it suddenly decided that half the buttons do nothing just today.


I ran GIMP in verbose mode to try and figure out whats causing it to bork up, and now its working fine again.
after multiple computer resets, opening and closing GIMP 1,000 times not helping at all,
It's suddenly back to normal. ¯\_(ツ)_/¯

Print this item

  History after reopening
Posted by: pavikpeter - 03-24-2020, 10:43 AM - Forum: General questions - Replies (2)

I made some modifications on a picture, saved it to *.xcf I closed it and reopened it again. Is there a way to check what modificaton has been done before closing?

Print this item

  New plugin: Spiropath
Posted by: Ottia Tuota - 03-23-2020, 05:16 PM - Forum: Extending the GIMP - Replies (4)

I got the feeling that the general-purpose plugins Parameter curves and so on do not raise much enthusiasm. They are mathematical, and my experience is that the mere word mathematics tends to put people off.

So I thought that it might be good to derive from them some specialized plugins. The first one is now available: it draws spirographs.

According to wikipedia, 'spirograph' is a registered trademark. Perhaps I am too sensitive, but I decided to call the plugin 'Spiropath'. It draw spirograph-like curves as Gimp's paths (approximations).

Gimp already includes the plugin SpyroGimp, which I guess comes nowadays automatically when Gimp is installed. But it does not output paths.

I found an old plugin

https://gimper.net/resources/spirograph.624/

that creates paths. But it seems to rely on placing control points densely on the curve. It does allow the user to diminish the number of control points, but then it turns out that between two successive anchors it simply puts a straight line segment.

My plugin outputs a path with a sparse set of anchors, yet it is reasonably accurate. So, it seems that nothing similar exists previously, or am I too optimistic?

To get the plugin, go to

http://kmarkku.arkku.net/

follow the link 'Applications', and click the Download button there. That gives you a .zip file. Unzip it, put the sole .py file into your Gimp's plug-ins folder, and restart Gimp. The plugin 'Spiropath' resides in

Filters/Render/Parametric curves/Special cases

That is a long path, but I don't want to add more items in Render, and I want to separate the special curves from the three general curves. I plan to put there a couple more soon.

A drawback of the plugin is its size: over 5000 lines. I constructed it by putting together most of parametric_curves.py and the example file which draws a spirograph and then developing things a little further.

I hope you will enjoy. At least the curves are pretty.

Print this item

  GEGL Operations Freezing Gimp?
Posted by: Captain_Cereal_Hands - 03-22-2020, 03:43 AM - Forum: Windows - Replies (4)

So here's the problem. When I go to use a GEGL operation like Color to Greyscale Conversion The program ether will do it but will load the preview one block at a time and freeze in between blocks and take several minutes to finish or just freeze entirely and not work depending on the settings I have (and this image is 1500x1000 pixels). Only Gimp stops responding I can still use all other programs.

I've Googled around and people say RAM RAM RAM. Well see I have an i7 6800K and 32Gbs of DDR4 RAM and my tile-cache is set to 26Gbs. I also have a GTX 1080. Oh and it's running on an M.2 NVME SSD.

So I'm trying to figure where the bottleneck is. Gimp? My hardware?

Maybe I'm not understanding the complexity of the operation.

Any help is appreciated.

Print this item

  How to get error messages in plugin registration?
Posted by: Ottia Tuota - 03-21-2020, 08:13 PM - Forum: Scripting questions - Replies (4)

I am on Windows 10.

I remember having seen how to get error messages from registration of a Python plugin, but I don't find it. (I guess it was on Gimp-Forum.com?)

I am making a plugin. It runs ok in the console. When I try to registrate it, I get no error messages but it does not appear in Gimp's menu. When I feed the registration part (without the main()) in the console, no syntax errors are found. I cannot see any faults in the code.

This situation has happened many times in the past, and every time it takes a long time to find the errors without any help from error messages. So, please, tell me how I can get the error messages, and the simpler the method the better.

Print this item