Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,780
» Latest member: Fennec72
» Forum threads: 7,594
» Forum posts: 41,394

Full Statistics

Latest Threads
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
6 hours ago
» Replies: 0
» Views: 78
How to make a watermark o...
Forum: General questions
Last Post: kyolim
Yesterday, 10:05 PM
» Replies: 5
» Views: 14,050
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
Yesterday, 06:06 PM
» Replies: 1
» Views: 370
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 05:20 PM
» Replies: 2
» Views: 301
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
Yesterday, 07:53 AM
» Replies: 15
» Views: 11,929
Photo play-time
Forum: Gallery
Last Post: Ofnuts
Yesterday, 07:32 AM
» Replies: 24
» Views: 21,780
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
09-12-2025, 11:53 PM
» Replies: 2
» Views: 653
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
09-12-2025, 04:03 PM
» Replies: 0
» Views: 307
How do you make text circ...
Forum: General questions
Last Post: rich2005
09-12-2025, 07:18 AM
» Replies: 12
» Views: 3,403
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 3,062

 
  Rounding corners of a straight-edge path
Posted by: Ottia Tuota - 05-27-2021, 12:19 PM - Forum: Extending the GIMP - Replies (13)

I made a plugin to round path corners. (Again I can't help wondering if I am just re-inventing the wheel. But at least it is a new wheel.) The plugin assumes that the path consists of straight line segments. Example: With default input values the plugin did this:

   

To get the plugin, go to

http://kmarkku.arkku.net/Path_modify_fil...aster.html

scroll to the bottom, and click the right download button. You get a zip file. Unzip it and place the one file it contains (round_path_corners.py) in your user's plug-ins folder. Then (re)start Gimp. To use the plugin: in the Paths tab, right-click a path and follow the links Tools > Modify path > Round corners.

I explain a little about the inputs.

The first input is "Where to set arc ends". It offers two choices: the default is "Use fixed distance from vertices", and the other one I skip now entirely. The value for 'distance' is input in the next field. The picture shows the meaning of "distance":

   

(One fact may cause surprises: In the code it is prohibited that the arc ends could go past the midpoints of the corner legs. The purpose is to avoid that two neighbouring arcs might get mixed up with each other.)

The next input allows the user to choose the shape of the arc. The list of the built-in shapes is:

  • circular
  • straight
  • parabola
  • close to vertex
  • through vertex
  • cusp

In addition, there is a customizable shape about which I talk in a subsequent post; it takes one parameter which is the next input, and I say nothing about that now. The built-in shapes are shown in pictures:

   

Finally, the last input is "How to use the selection?" which allows the user to make roundings only in some part of the path, keeping the rest untouched (just about). About this I give one example. Suppose you have a path as on the left below. You want to round the corners but want to preserve the long arc. Running the plugin as such would lose the arc (the plugin assumes that the path consists of straight edges and ignores all curvatures). You can protect the long arc as follows: (1) Create a new anchor; (2) make a selection; (3) call the plugin with "Round the corners only inside the selection." The result may be close to what you want, hopefully. (Or maybe not. Some manual tweaking may be needed.)

   

Writing the plugin had complications, as always, and I am not sure that I got everything right. Please tell me if you find the plugin doing anything unruly.

I explain now a little about how the plugin makes the rounding arcs. (I hesitate posting this since hardly anybody wants to read such details, but I think that maybe, just maybe, somebody somewhere will find it useful. And it is easy just to skip it.)

The plugin uses two different algorithms:

  1. An algorithm to make circular arcs.
  2. An algorithm customizable with one parameter (this handles all other cases except the circular arcs).
Some words about each. For simplicity, I assume that we are using the option "Use fixed distance...".

Algorithm 1

The algorithm to draw circular arcs is based on the well-known idea. But it is here in a disguise: Instead of a center and central angle, it takes as input a tangent triangle.

Algorithm 2

The algorithm customizable with one parameter takes as input one parameter (in addition to the corner and the distance from the vertex). Look at the picture below. It shows how the control points are chosen by the algorithm. First, |AC| = |BC| = distance (the input value). The arc should be drawn from A to B. It is done by control points A,X,Y,B where X and Y are chosen from the legs so that |AX|/|AC| = |BY|/|BC| = parameter. So that is the definition the algorithm uses.

   


In the GUI of the plugin you may wonder what the numbers in the list of built-in shapes mean:

straight (0)
parabola (2/3)
close to vertex (1)
through vertex (4/3)
cusp (2)

They are the preset parameter values; they are hard-coded in the built-in cases, and with those parameter values the algorithm draws a straight line, a parabola, and so on.

But in addition to these preset values, you may use any custom value: choose the option "one-parametric custom shape" and input some value for the parameter (default is 0.5). For instance, you may want to try arcs flatter than circular but not quite straight; try then parameter=0.3, for example. Any float number can be used, even negative (but not in fractional form unfortunately).

Another example:

   

Here the plugin was applied to the hexagon with "Use midpoints of edges" and custom shape with parameter = 6.

Some random thoughts: I am thinking that it might be nice to have more flexibility in determining the shape of the arcs. But on the other hand I think that it would not be worth the trouble. It would mean more parameters and would therefore be difficult to grasp and difficult to use. But if a good scenario for such function could be designed (flexible, versatile, simple, easy to grasp and control - is it possible?) then I think it would be easily added into the plugin. I already had a two-parametric custom shape there. But I dropped it. Too difficult, too little gain.

Print this item

  Etching effect
Posted by: Borgward1 - 05-27-2021, 04:46 AM - Forum: General questions - Replies (1)

Is there a plugin or way to make a B&W photo look like an etching?

Print this item

  Fully Transparent Text + How To Create It?
Posted by: CtrlAltDel - 05-27-2021, 01:53 AM - Forum: General questions - Replies (4)

This question was inspired by Meetdilip's recent thread about the rubber stamp plugin. Upon trying to create some extra transparent text to add into the results of the output of the rubber stamp plugin, I realized I had no idea how to create transparent text.

I managed to use the Layer Effect-Drop-Shadow filter to create a semi-transparent text addition to the output, but was hoping for fully transparent text effects just as the Rubber Stamp plugin creates.  To illustrate the failure I encountered, a red background was added to the image below.  As can be seen, the text/username "Altie" is not fully transparent.

[Image: FqccjBi.png]

Print this item

  XCF thumbnails in Windows Explorer
Posted by: vanwilliam1960 - 05-27-2021, 12:03 AM - Forum: General questions - Replies (1)

How can I get Windows 10 File Explorer to show thumbnails of XCF files? I would be happy if gimp's file explorer would show all the thumbnails, instead of just one file at a time.

Print this item

  Color changes from computer to iphone
Posted by: richiie - 05-26-2021, 06:45 PM - Forum: General questions - Replies (1)

Hey Gimp Family,

Hope you are all doing well. I am editing a couple of pictures for my instagram portfolio. Whenever I export my pictures to my iphone, the colors and saturation looks different than what is on my desktop. Anyone know what I can do to fix this/make a new color profile?

Thanks

Print this item

  How do I do a grid fill?
Posted by: Shyden - 05-26-2021, 04:52 PM - Forum: General questions - No Replies

basically I want to do a grid fill similar to this, and I cant find any articles online. any help is appreciated, thanks!
[Image: unknown.png]

I figured it out. Go to Filters -> Render -> Pattern -> Checkerboard.

Print this item

  GMIC chops off image in GIMP
Posted by: GMP - 05-25-2021, 11:43 PM - Forum: General questions - Replies (5)

I'm using the latest GIMP and the latest GMIC. I'm doing a face swap using a layer mask on one pic. I'm using layer/blend (seamless), input - all visible. It's cutting off a good part of the pic and I can't recover that part by using Image/fit canvas to layer. It's simply chopped off. What can I do to prevent this?

Other time I've used this same preset without this happening. I went ahead and reinstalled GMIC, because at one time earlier today GIMP said the GMIC plugin crashed. This is an old computer 4 gigs of RAM.

Print this item

  Rubber stamp seal
Posted by: meetdilip - 05-25-2021, 05:38 PM - Forum: General questions - Replies (11)

Is there any easy method to create a rubber stamp seal other than drawing everything from scratch ? It would be nice if we can customise the text and colour. Thanks.

Print this item

  layer visiblity
Posted by: pjohnmathew - 05-25-2021, 10:05 AM - Forum: General questions - Replies (1)

I am a newbie Gimp 2.10 and I cant see multiple layers together even though i have made all layers visible with the eye icon ? A layer becomes visible over another one when i increase transparency only but this is not what i want... like to see all layers with full opacity..  help !!!

Print this item

  Calibrating white and black points
Posted by: psaccheri@gmail.com - 05-25-2021, 09:53 AM - Forum: General questions - Replies (7)

Hello,

I need to "calibrate" digitized images of test prints with the white and black patches of a color card, like the Spydercheckr24 that I have. 
My test prints are alternative photography 256 step wedges, i.e. little squares of degrading tones from the darkest to paper white that I print by hand using an old photographic process.

To better explain my "calibration" needs I can do the parallel with Photoshop. There I open my image containing the test print and the color card at its side (see attached image). I know the Lab (or RGB) values of the patches in my card. Using the Curves command in Photoshop I can customize the pipette values for the white, black and gray points. So I write in the Lab value for the black point and then click on the black patch of the color card in my image. Therefore the black point of the image adapts to the newly customized level. And so I do for the white and gray points inside the Curves command. At the end my image is "calibrated" as per the correct values of luminosity, the darkest and the white colors are as they are supposed to be.

In GIMP I have found that the Levels command has the white and black pipette but unfortunately they seem not to be customizable so they make the white patch to become your white (255,255,255 RGB) and your black patch to become (0,0,0 RGB) and my final test print is out of its real range of tones since the color card has not those values.

My question: is there a way I can perform a color value "calibration" using GIMP as explained above when using Photoshop? 

Thank you in advance for your help!
Paolo

P.S. attached a sample of my scan. I use the gray side of the color card but if of any help (automatic calibration sw) I can use the colored side.



Attached Files Thumbnail(s)
   
Print this item