| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 5,064
» Latest member: Ronald
» Forum threads: 7,778
» Forum posts: 42,250
Full Statistics
|
|
|
| Trouble with vector input for polygon selection |
|
Posted by: ss32 - 02-11-2018, 09:57 PM - Forum: Scripting questions
- Replies (2)
|
 |
I'm writing a plugin to call python-fu-heal-selection with inputs of the file and the points defining the polygon selection, but cannot get the polygon selection to work. I have tried using the square polygon select and it works fine, but the generic polygon selection does not accept my input; what's wrong with my script?
Code:
(define
(heal-select points point_count)
(let*
(
(image (car (gimp-file-load RUN-NONINTERACTIVE "tmp.jpg" "tmp.jpg")))
(active-layer (car (gimp-image-get-active-layer image)))
)
;(gimp-image-select-rectangle image CHANNEL-OP-ADD 122 67 138 81)
(set! active-layer (car (gimp-image-get-active-layer image)))
(define path-points (list->vector points))
(gimp-image-select-polygon image CHANNEL-OP-ADD point_count path-points)
(python-fu-heal-selection RUN-NONINTERACTIVE
image
active-layer
3
0
1)
(display points)
(gimp-file-save RUN-NONINTERACTIVE image active-layer "tmp2.jpg" "tmp2.jpg")
(gimp-image-delete image)
)
)
With the command line input:
Code:
gimp -i -b "(heal-select '(122. 67. 138. 67. 138. 81. 122. 81. 122. 67.) 5)" -b "(gimp-quit 0)"
I have tried removing '(define path-points (list->vector points))' and passed it the points as #(1 2 3 4) and still get an error message hinting at the fact that the polygon isn't closed or is empty.
|
|
|
| Cropped Corners |
|
Posted by: le_jank - 02-09-2018, 07:01 PM - Forum: General questions
- Replies (15)
|
 |
Hello everybody (: I am trying to create a selection and an image with square/rectangles with cropped corners. Something like this:
All I can find is how to make rounded corners, but that is not exactly what I need. Does anyone have a clue on how to achieve this?
|
|
|
Importing Layer Changes Color |
|
Posted by: mattig89ch - 02-09-2018, 04:38 PM - Forum: General questions
- Replies (2)
|
 |
Hello all,
First time here. In truth, I don't do alot of image editing. Dangit Jim, I'm a network tech not a graphic artist!
But I had an idea for a custom morale Badge, that I wanted to try and get made for me. All the people who make said badges, wanted an image to base their printing/embroidering off of.
And thus here we are. Right now, I managed to figure out how to get image 1's background to be transparent. But, when I add it as a layer on top of image 2, image 1's colors change.
Is there a way to either re-color image 1 to its original colors? Or a way to lock image 1's colors, so they don't change?
Thanks all!
|
|
|
| Using Brightness-Contrast color tool in grayscale mode image |
|
Posted by: Ambulation - 02-07-2018, 05:02 AM - Forum: General questions
- Replies (2)
|
 |
I've been working in an image set to grayscale mode. It's in preparation for a publication that will only accept images that are naturally grayscale in this mode (these are from a scanning electron microscope-all pixels assigned grey values only). I'm working in the most up to date version of GIMP-2.8.22 in Win7.
There are some layers in which I wish to make minor edits to the brightness and contrast, but the tool makes no visible change to the layer (which is in a layer group) I have selected. There are no changes in the preview mode or when i press OK. Is it possible this feature is not usuable in greyscale, but only RGB mode?
|
|
|
|