Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,586
» Latest member: Bookman
» Forum threads: 7,459
» Forum posts: 40,756
Full Statistics
|
|
|
Enter path in dialogs |
Posted by: kiwichick - 04-12-2022, 11:13 PM - Forum: General questions
- Replies (10)
|
 |
Sorry if this has been asked before but I couldn't find anything using Search. Can someone please explain to me why it's not possible to enter (manually or copy and paste) a path in any of the dialogs for Open, Save, Export? It is so not user-friendly and I can't for the life of me imagine why it would be designed this way. And can someone please also tell me what the "Search" is for in these dialogs?
|
|
|
Drawing a simple rectangle layer? |
Posted by: oguruma - 04-09-2022, 08:46 PM - Forum: General questions
- Replies (6)
|
 |
I'm learning the basics of using GIMP. I'm making a simple "color palette" for a design project.
I want to draw several rectangles, each as their own layer, and have that entire layer be the size of the rectangle.
When I click "New Layer" and draw the selection, I can color the selection, but the layer still has the size of the background layer (instead of the small rectangle, like I want).
I can manually resize the layer, but I'd assume there's a better way size the entire layer to the rectangle I want.
How do you do this?
|
|
|
An "Alpha" layer blending mode - need help with building |
Posted by: Ismir Egal - 04-09-2022, 05:57 PM - Forum: Extending the GIMP
- Replies (7)
|
 |
Hello guys,
Similar to "HSV Hue", "HSV Saturation" and "HSV Value" i want to implement an "Alpha" layer blending mode which replaces the target alpha channel with the one of the input layer.
I'm not big into programming so luckily i can just use one of the aforementioned ones as a base.
The color space transformations aren't required and we don't need to do any math so the code should just be:
operations/layer-modes/gimpoperationlayermode-blend.c (line 538):
Code:
void
gimp_operation_layer_mode_blend_alpha (const gfloat *in,
const gfloat *layer,
gfloat *comp,
gint samples)
{
while (samples--)
{
comp[RED] = layer[RED];
comp[GREEN] = layer[GREEN]
comp[BLUE] = layer[BLUE];
comp[ALPHA] = in[ALPHA];
comp += 4;
layer += 4;
in += 4;
}
}
operations/layer-modes/gimpoperationlayermode-blend.h (line 85)
Code:
void gimp_operation_layer_mode_blend_hsv_value (const gfloat *in,
const gfloat *layer,
gfloat *comp,
gint samples);
operations/layer-modes/gimp-layer-modes(line 584)
Code:
{ GIMP_LAYER_MODE_ALPHA,
.op_name = "gimp:layer-mode",
.blend_function = gimp_operation_layer_mode_blend_alpha,
.flags = GIMP_LAYER_MODE_FLAG_BLEND_SPACE_IMMUTABLE,
.context = GIMP_LAYER_MODE_CONTEXT_ALL,
.paint_composite_mode = GIMP_LAYER_COMPOSITE_UNION,
.composite_mode = GIMP_LAYER_COMPOSITE_CLIP_TO_BACKDROP,
.composite_space = GIMP_LAYER_COLOR_SPACE_RGB_LINEAR,
.blend_space = GIMP_LAYER_COLOR_SPACE_RGB_PERCEPTUAL
},
However, i can't get Gimp to build. Not that it fails; it's that the problem sits in front of the desk.
The tools don't link up and the libraries don't seem to work. I've already spent way more time into setting this up then coming up with the code seen above.
Personally i don't think it's worth putting more time into trying to make the building work so
Could somebody implement these changes and upload a Windows build? (if it even works that way)
Setting this up as a plug-in would obviously be the better way but i have no idea how to do this, especially since i can't just copy and modify existing functions.
Please let me know if you can help or know a better solution
|
|
|
darken text issue |
Posted by: denzjos - 04-09-2022, 09:27 AM - Forum: Tutorials and tips
- Replies (2)
|
 |
I wanted to darken a small text to make it more readable and discovered following issue. I typed a text and duplicated the layer a few times and the text becomes darker (this is normal). To move the darkened text I merged the text layers and the result was a normal layer with darkened text that can't be edited afterwards. The trick to edit the text afterwards is to save the drawing with the duplicated layers not merged, then load the drawing again and merge the text layers. The result is a normal layer (can't be edited). Now save the drawing and load it again. The 'normal' layer with the text is now converted to a editable text layer. When one edit the text, then the text darkness becomes as the original darkness. If the text duplicated layers are not edited, they stay darker.
|
|
|
|