Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,907
» Latest member: RonaMalo
» Forum threads: 7,357
» Forum posts: 40,054
Full Statistics
|
|
|
Threading / Loops in Python Plugin |
Posted by: JBreckeen - 01-01-2024, 05:11 PM - Forum: Scripting questions
- Replies (14)
|
 |
Hello all.
I have been using Gimp for work for a while now, but never got into building plugins for it - though I do code Python for other programs and plugins. Sorry for this long post, but it is complicated (to me at least)
Want I am trying to do is to integrate Gimp into my graphics pipeline. This entails making a plugin so that my outside pipeline software can communicate and execute some simple Gimp functions such as .xcf save and file export. And inside Gimp, I would like my menu items to be able to execute functions in my pipeline software such as call other scripts.
I understand Gimp 2.10 uses Python 2.7, but I need to use Py3.9 for my external software . I have managed to insert a menu and items into Gimp, and can get it to execute functions--uphill battle but woohoo!
The issue is I need the Gimp plugin to communicate with my pipeline. So the first issue I have is the Py mismatch. My solution was to use a bridge script, and it works statically. Basically, Gimp loads the plugin, and the plugin launches the bridge script in a Py3.9 process and I am able to execute functions both ways. But I need dynamic comms between the two. I tried sockets but could not get that to work in Gimp. So I then fell back to the old .json file, but I need a non-blocking way to check for the command file inside Gimp. I then tried using a thread for the checking loop which works, but that thread cannot then execute anything in the main Gimp thread (at least that is where I am at).
So the question is: can I get it so Gimp will have comms with an outside script? Is there a way to have a thread launched under the Gimp plugin to be able to execute in the main Gimp thread?
Hopefully that makes sense, and I can provide code if needed. I did not include it since it is not working anyway . . .
Thanks in advance,
JBreckeen.
|
|
|
No chance to save a picture into original *.jpg file and format? |
Posted by: clsven - 12-29-2023, 12:40 PM - Forum: General questions
- Replies (3)
|
 |
A frequent situation: I load a *.jpg images and applied some changes.
Then I press the good old standard key combination <Ctrl> + S to save it into the original *.jpg file.
As I noticed I can save such images only into *.xcf format.
If I want to save it into *.jpg or *.png format I have to export it with an annoying intermediate dialog
with some additional required mouse clicks.
Is there no way to swap the meanings?
Ctrl+S IS the standard to save something into original file.
And export to save it to something different.
Having to remember the different meaning in Gimp interrupts my workflow and is user unfriendly.
Claudia
|
|
|
Need the old Gimp.. Please... |
Posted by: Blitz - 12-28-2023, 09:24 AM - Forum: Older Gimp versions (2.8, 2.6....)
- Replies (5)
|
 |
Running Linux Mint Mate 20 in an HP Elite Notebook that I got out of the garbage.. It has a touch screen, oh yay..
I just uninstalled the new Gimp I got from Synaptic.. The one that has everything in one window, is way too gaudy and cluttered.. I suppose it's made for you supermen perfessionals.. I ain't uh perfessional.. don't want to be.. up hear in duh mowntains we dont git much o dat dar supahero edgimukashun larnin lik yer stonch snootie heroburger citee foks do..
Weza mostlee as dum as uh skwisht grashopuh on uh rok in duh rane..
I love the old Gimp that has the three little windows, so I can close the right window, and make Gimp be small on the screen, so I can have several pix files of these cutie bare bum young ladies up on the screen that I'm working on editing making em prettier.. I have been through all the older version web pages, and have been downloading from here there and everywhere.. I get archive thingys that don't install but give a useless pretty list of crap stuff.. I get the same new one window cluttered crazy Gimp everywhere I download it.. I am forever downloading, installing, uninstalling, deleting downloads, searching searching searching on the Net.. What ever happened to the good ole real Gimp?..
There should be a double user option in synaptic to install the old Gimp or the new Gimp..
(non-relevant text deleted)
I'm just trying to find an old version of Gimp that installs without me needing to waste my life learning how to do computer programming and code and all that crap.. I know the off'n on buttons, and usb's, and gmail, and YouTube, and passwords, and mp3's, and mouse clicky stuff, and charge the battery, and how to use the old Gimp... Where can I find a simple download of the old Gimp that installs after you downloads it like things were before the world went all crazy and suicidal..?
|
|
|
Problem moving selected rectangle area |
Posted by: pstein - 12-28-2023, 09:19 AM - Forum: General questions
- Replies (1)
|
 |
I am confused. After a while of not using Gimp I need to do something which worked the past worked...somehow.
1. I dragged a new image to Gimp
2. I selected "Rectangle Select Tool" and selected an area in the currently visible image
3. I selected the "Move Tool"
4. I clicked into the rectangle area and dragged it.
Surprisingly not the rectangle area is moved but the underlying whole picture.
Whats wrong?
How can I move selected are only?
|
|
|
|