Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5,544
» Latest member: phoebus
» Forum threads: 7,142
» Forum posts: 39,060
Full Statistics
|
|
|
PyGimp;Change color;Bucket fill selected |
Posted by: FloppaDisk - 03-15-2020, 07:08 AM - Forum: Scripting questions
- Replies (2)
|
|
Hi. Trying to change the color of the bucket fill function in python gimp, but due to my inexperience with python and the structure between gimp and python i have not been successful.
Information im looking for is:
How to swap the pre-selected colors
How to set new color
How to fill and selected area
How to select and area
All of which needs to take place in pyGimp
The bellow code is what i have so far, but the result is what i expect.
Expected result should be an grid (almost like a chess board) where pyGimp color individual squares in one of the two colors (foreground and background)
#Select and square
pdb.gimp_rect_select(img, gPosX+pX, gPosY+pY, wid, hig, CHANNEL_OP_REPLACE, False, 0.0)
#Fill the square
draw.fill(FILL_FOREGROUND)
|
|
|
color wheel in gimp method? |
Posted by: marigolden - 03-12-2020, 03:59 PM - Forum: General questions
- Replies (14)
|
|
Any idea on how to make a color wheel in gimp?
Just a simple pie visual, except instead of for the purpose of percentages it's just to show the rainbow +3 other colors (white, brown, and black) so 9 colors in all
|
|
|
Parametric curves |
Posted by: Ottia Tuota - 03-12-2020, 01:21 PM - Forum: Extending the GIMP
- Replies (16)
|
|
Hello!
Here are my first two plugins. With them you can draw parametric curves (or polar curves) in Gimp, approximately as Bézier curves. If you go to
http://kmarkku.arkku.net/
and click the link Simple Parametric Curves, and scroll down to the bottom, you find a button to download a .zip file. The items in the .zip file are:
- simple_parametric_curve.py (this is the plugins)
- doc.pdf (the documentation)
- example_files (this is a folder; see the site for explanation).
To install do:
1. Download the .zip file.
2. Unzip it.
3. Put the file simple_parametric_curve.py in your Gimp's plug-ins folder.
4. Restart Gimp.
5. Then the two plugins should appear in Gimp's menu at
Filters / Render / Parametric curves.
Their names are 'Simple parametric curve' and 'Simple polar curve'.
You had better then start by glancing through what the site tells. Then glance at the file doc.pdf. If the plugins interest you, you had better read doc.pdf more thoroughly at some point.
The task is to draw a parametric curve. That is what the first plugin, Simple parametric curve, does. The second, Simple polar curve, draws a curve given in polar form. (I assume here that you have some idea what those mean, so I don't explain). By "drawing" I mean that the plugin constructs the curve as a Bézier curve. In Gimp that means a path or a vectors object. So, if you want to stroke the curve, you have to do it yourself.
Since only very few curves can be faithfully represented as a Bézier curve, the produced path is just an approximation of the requested parametric curve.
Inkscape has a tool for such job. But it is even more simple than my plugins. To get an accurate result with it, one often has to make it to put control points densely on the curve. My plugin works in the opposite way: It tries to use only a sparse set of control points. That makes the problem of approximation quite non-trivial. The algorithms are my own.
You may wonder why I call my plugins simple. The reason is that I shall soon be sharing with you a third plugin which is developed much further, works much better, but is more difficult to use. (Though, if you feed the inputs in the GUI and not in an input file, there is not much difference. What these words mean, please see the explanations on the site or in doc.pdf.) I believe that in practice the simple plugins will be the ones most used.
I was hoping to include a picture but it seems that it cannot be uploaded here, only a link to somewhere else. So, please download the .zip file and look at the file doc.pdf there. It has some pictures.
Now I'd like to say a little of my background. I am a mathematician, already retired, who knows very little about computers or coding. Making such plugins came to me as a hobby some years ago. I was hooked and still am. I have been learning Python along the way. I used a much older version of my plugin when I wrote some lecture notes in mathematics as my last task before retirement in 2016. All curves I draw using my own plugin. So the plugin has been applied in a useful job even before publication.
If you have questions or problems with the plugins, please just ask.
|
|
|
Apply stroke to text in Gegl? |
Posted by: JasonP - 03-12-2020, 12:27 PM - Forum: General questions
- Replies (3)
|
|
Hi,
This isn't really a Gimp question, but I'm having trouble finding a better place to post it - please feel free to redirect me if appropriate. I've been feeding xml files to the Gegl command line application to process photos - applying a crop, doing rotations, compositing, adding text, etc. But now I've been asked to add dropshadows and strokes to the text. Dropshadows were easy... but it looks like to apply a stroke, I'd need to somehow define a path around the text. I've been all over the (somewhat sparse) documentation, but I can't find anything that even gives me a starting point on how to do that. Does anyone here have any suggestions for doing this in an automated fashion?
Thanks,
Jason
|
|
|
scanner app |
Posted by: denno - 03-12-2020, 02:41 AM - Forum: General questions
- Replies (1)
|
|
Greetings
I am a new user. Used to use PS 7 or so, but with any changes in computer can no longer register my copy....
One thing I liked in PS was the scanner app. The one in GIMP seems much more primitive.
Does this mean I don't know how to use it to the fullest, or it is more primitive?
I am no genius at this, but I could easily change some settings and dpi. This one seems less detailed.
Is there something fancier available, or you reckon I should get "fancy" with the post-scan manipulation.
I do want to remark that the changes in nomenclature make it take some time to adjust from PS. Yeah, yeah, yeah....read the manual.
denno
|
|
|
Change one color of a 2 color picture |
Posted by: kbrick66 - 03-12-2020, 01:19 AM - Forum: General questions
- Replies (6)
|
|
I took a picture of an antique radio dial and I want to clean it up to print a new face. I've got it cleaned up but I want to change the color of the text on the black background. Is there a way to change the color of the text only to another color in one action? I'm new to GIMP and the controls are a bit overwhelming. Thanks for any help.
Ken
|
|
|
|