Welcome, Guest |
You have to register before you can post on our site.
|
Latest Threads |
crop and straighten photo...
Forum: General questions
Last Post: denzjos
4 hours ago
» Replies: 6
» Views: 124
|
Color fill into pasted la...
Forum: General questions
Last Post: sallyanne
9 hours ago
» Replies: 1
» Views: 89
|
Arrow Script
Forum: Extending the GIMP
Last Post: Chris Thompson
Yesterday, 07:48 PM
» Replies: 133
» Views: 168,814
|
ofn3-layer-tiles
Forum: Extending the GIMP
Last Post: karaxus
Yesterday, 10:53 AM
» Replies: 7
» Views: 1,050
|
Slowing down
Forum: General questions
Last Post: rich2005
Yesterday, 10:33 AM
» Replies: 2
» Views: 213
|
Script-Fu in GIMP 3 websi...
Forum: Extending the GIMP
Last Post: pixelmixer
Yesterday, 10:22 AM
» Replies: 13
» Views: 1,284
|
AppImage for 2.10.38
Forum: Alternate Gimp packagings
Last Post: Tas_mania
05-07-2025, 11:10 PM
» Replies: 4
» Views: 304
|
I can' show the two layer...
Forum: General questions
Last Post: blogsofwardotme
05-07-2025, 09:10 PM
» Replies: 2
» Views: 156
|
Map to cylinder adding ra...
Forum: General questions
Last Post: n4mwd
05-07-2025, 06:46 PM
» Replies: 2
» Views: 144
|
Forced to operate Gimp 3....
Forum: Gimp 2.99 & Gimp 3.0
Last Post: rich2005
05-07-2025, 03:22 PM
» Replies: 1
» Views: 108
|
|
|
Can Gimp Draw Arrows (brushes don't work)? |
Posted by: dbareis - 04-07-2025, 06:52 AM - Forum: General questions
- Replies (4)
|
 |
I'm a simple user of image editors, unfortunately it appears you have to be a professional editor to even attempt to use Gimp.
What I do is crop, resize, draw text, draw arrows from a to b (text to subject of text). Everyone seem to recommend brushes, but from my attempts that is not possible, for starters you don't define 'a' & 'b" and can't change the length. All of this is relatively trivial in Paint.Net and some other editors, I just thought I'd try GIMP out. I have looked for and failed to find much in the way of tutorials on any of the basics.
Am I missing something? Or is it not possible to draw arrows (a modified straight line with arrow head) in GIMP?
|
|
|
xnviewmp open with gimp error message |
Posted by: zugzwang134 - 04-06-2025, 05:49 PM - Forum: Linux and other Unixen
- Replies (4)
|
 |
Unclear if this question should be posted on a gimp forum or an xnviewmp forum. Because there may be an obscure gimp setting, I am trying this gimp forum first.
I just installed Linux Mint 22, and then xmviewmp 1.8.7 64-big (Linux) - Libformat 7.220 and then gimp 2.10.36. Then, I used xnviewmp's open with : configure : gimp facility to start gimp from inside xnviewmp by right-clicking on an image. Doing this, gimp opens the image okay, but has an annoying popup message "Opening /home/steve failed : Not a regular file." I have unsuccessfully tried variations of the [ xnviewmp : open with : gimp ] facility. For example, if I instead specify gimp.sh, which contains the command gimp-2.10 %U, xnviewmp does nothing. Alternatively, if I xnviewmp-configure gimp to start with the %U option, then I get two popup error messages.
I would like to find a gimp setting (or alternatively a xnviewmp setting) that will prevent any such popup message. Before posting, I attempted to research the problem. I found similar postings that were not exactly on point. I did notice that responders were interested in gimp's interaction with bash, so I experimented:
- When I start gimp, by itself, with the icon-command = gimp-2.10 %U, there is no problem opening/manipulating images.
- When I open a bash termimal and execute gimp-2.10, again there is no problem.
- However, if (instead) I open a bash terminal and execute gimp-2.10 %U, then I get the error message: "Opening /home/steve/%U failed: Error opening file /home/steve/%U: No such file or directory",
I don't really care about opening gimp from a bash terminal. That was simply an experiment.
Is there a gimp setting that will allow gimp to open the image as xnviewmp is directing, without also trying to open /home/steve/'? Alternatively, is there a gimp setting that will re-direct the message to a log file, so that I don't have the annoying popup, each time I xnviewmp-open-with-gimp an image?
|
|
|
Gimp 3: get indexed of each pixel from a layer = img.layers[0] pdb.gimp_layer |
Posted by: TheInstinct - 04-04-2025, 09:09 PM - Forum: Extending the GIMP
- Replies (6)
|
 |
Hi everybody,
I'm facing a serious problem when porting a plugin I wrote in Gimp 2.10 to Gimp 3.0 in python.
In Gimp 2, I used the following way to the color index of each pixel. It works very well:
Code:
layer = img.layers[0]
region = layer.get_pixel_rgn(0, 0, img.width, img.height, False, False)
pixels = array("B", region[0:img.width, 0:img.height])
pixels contains the index of the color [0;255] which is a byte.
In Gimp 3, you can get access to color information of the layer by using layer.get_buffer(...) but you won't get the color index as you must provide a Babl format. So you will get a color, or luminance in the format you selected "RGB u8" for example, but you won't get the indexes of the colors used by each pixel.
I made research but can't find how to get color index of each pixel. I hope some of you will be able to help me.
Thank you in advance for your support.
|
|
|
Issues with pasting and aligning |
Posted by: accessd - 04-04-2025, 08:26 PM - Forum: Gimp 2.99 & Gimp 3.0
- Replies (2)
|
 |
Hi all,
I'm having trouble performing some basic tasks in Gimp 3. I'm not sure if they're bugs (in which case I will submit a report), or if the functionality has changed and I'm using it the wrong way. I commonly need to splice images of two or more people together. The general process is as follows:
- use the selection tool to select part of image A;
- click Crop to Selection;
- resize the image to match the width or height of the new image I'm creating;
- use the Crop tool to crop a fixed size;
- copy the resulting image and paste it into a new file;
- use Align and Distribute tool to move it to one side of the new image;
- repeat process with image B.
Since I upgraded to Gimp 3, when I copy the cropped image and paste it into a new file, I get all the information from before I used the Crop tool (Step 4). To get around this, I have to use the Copy Visible command, but shouldn't the Crop tool get rid of the rest of the image like the Crop to Selection command does?
Then, when I try to align the pasted layer in the new image, regardless of whether I try to align the layer vertically or horizontally, the Align and Distribute tool aligns the middle of the layer with the edge of the image, so half the layer is always out of view. Is this a bug or am I missing something?
I'm running Gimp 3.0.2 on Ubuntu 24.10.
|
|
|
PyAstro3 |
Posted by: KenS. - 04-04-2025, 09:55 AM - Forum: Gimp 2.99 & Gimp 3.0
- No Replies
|
 |
Has anyone heard whether PyAstro3 will be updated to GIMP 3.0. So far unable to find contact address for author. Take care.
|
|
|
Gimp 3 Flatapak Linux PYTHONPATH is empty |
Posted by: silenuznowan - 04-03-2025, 07:46 PM - Forum: Scripting questions
- Replies (6)
|
 |
I'm trying to get a bash script to run after changing folders.
If I explicitly set the path to the python scripts it runs fine.
If I however omit the explicit path, even though the scripts are in my PYTHONPATH they are not recognized when running without
explicitly using sys.path.append
If I try and get the python path from inside the Gimp shell, it reports no key present instead of printing the PYTHONPATH like it does when not in the Gimp shell.
As stated in the title I have the flatpak version so my question is how do I get it to use my current PYTHONPATH?
Also is it possible to use packages, and if so how. I had a simple package, but when functions were called from a bash script, they would fail with the internal imports in the package failing. An example is below:
Code:
### This should be the command to start Gimp
GIMP_THREE='flatpak run --user org.gimp.GIMP'
# Start gimp with python-fu batch-interpreter
$GIMP_THREE -i --batch-interpreter=python-fu-eval -b - << EOF
import os
import sys
print("PYTHONPATH = " + os.environ['PYTHONPATH'])
EOF
exit(0)
However if on the command line I load a python script that calls the same methods as the bash script it executes fine.
Code:
flatpak run --user org.gimp.GIMP -i --batch-interpreter=python-fu-eval -b 'import sys; sys.path=["."]+sys.path;import pytest;pytest.run()'
I feel like it's something simple i'm missing because I'm not a python programmer. Hopefully someone can help.
Thanks.
|
|
|
|