Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,789
» Latest member: Ttrevor
» Forum threads: 7,598
» Forum posts: 41,409
Full Statistics
|
Latest Threads |
How do you make text circ...
Forum: General questions
Last Post: Krikor
1 minute ago
» Replies: 13
» Views: 3,681
|
files missing after insta...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
Yesterday, 03:58 PM
» Replies: 4
» Views: 420
|
Simplifying a path
Forum: Extending the GIMP
Last Post: Infinimitsu
Yesterday, 01:34 PM
» Replies: 39
» Views: 35,220
|
Is there any version wher...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: HavingTooMuchFun
Yesterday, 08:24 AM
» Replies: 2
» Views: 568
|
.pcd files issue?
Forum: OSX
Last Post: rich2005
Yesterday, 07:49 AM
» Replies: 1
» Views: 266
|
How do I uninstall GIMP 3...
Forum: Linux and other Unixen
Last Post: Ofnuts
09-15-2025, 07:02 AM
» Replies: 1
» Views: 399
|
AI Gimp Plugins
Forum: Watercooler
Last Post: merlilderman
09-14-2025, 04:16 PM
» Replies: 21
» Views: 69,101
|
How to make a watermark o...
Forum: General questions
Last Post: kyolim
09-13-2025, 10:05 PM
» Replies: 5
» Views: 14,546
|
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
09-13-2025, 06:06 PM
» Replies: 1
» Views: 776
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
09-13-2025, 05:20 PM
» Replies: 2
» Views: 696
|
|
|
Warping a path |
Posted by: Ottia Tuota - 03-25-2021, 08:02 AM - Forum: Extending the GIMP
- Replies (6)
|
 |
I got the idea to try to implement warping of paths, similar to Gimp's tool Warp Transform on images. I show now what I managed to make. Not quite similar but close.
See the picture below. The grid is actually the path that I warp. I use this path in this example since it shows the effects best. The warping is done inside a given circle, so that it is a local operation. The plugin has three modes of action: Grow, Shrink, and Swirl (counter-clockwise or clockwise). The picture shows an example of each, applied to the grid path:
The blue circles do not belong to the transformed path; they are here just to show the circles of action. The circle is input by the user as a 2-anchors path (meaning either a diameter or the center and one point on the circle).
The plugin has two parameters: Smoothing and Strength. Smoothing controls what happens at the edge of the circle. If Smoothing = 0, there will be sharp bends like in the picture above. When Smoothing > 0, the bends are rounded. The rounding happens inside the circle. The other parameter, Strength, controls the amount of the warping effect.
In the above picture Smoothing=0 and and Strength=1 (the defaults).
Here are the same examples as above but with Smoothing = 5 and Strength = 0.8 (recall that the blue circles do not belong to the path):
Good values for Smoothing are 0..10 but you can go higher. Strength accepts values 0..1.
Strength seems to work similarly to the Strength parameter in Gimp's Warp Transform tool. But Smoothing is nothing like the Hardness parameter in Warp Transfrom. And the figure on the left in the first picture (Grow) is something that the Warp Transform cannot produce. The effects of Grow in my plugin and in Warp Transform are very different even though with some parameter values they come rather close. But of course I have no idea what the formulas behind the Warp Transform are.
It appeared that while the warpings on the grid are quite pretty (to my eye at least), trying something more practical needs some care to get acceptable results. Here I tried a text. Left to right: Grow, Shrink, Swirl(cw), all with some smoothing (and now without the blue circles):
Another one. These three houses were made from the same straight-edged figure with Copy, Scale, and Warp:
The plugin has one serious drawback: It is based on my own rickety approximation algorithm that I have used before. I really wish I had something better. If you want fast work, you get either a lousy result or a vast number of control points. If you want good work with few control points, you have to wait with patience. This cannot be helped for the time being.
To get the plugin, go to
http://kmarkku.arkku.net/Path_warp_files...aster.html
scroll to the bottom, and click the download button. You get a zip file. Unzip it and place the one file it contains (warp_path.py) in your user's plug-ins folder. Then (re)start Gimp.
To invoke the plugins, go to the Paths tab, right-click some path and follow the links
Tools > Warping > ...
If you find strange behaviour by the plugin, please tell me.
|
|
|
gimpfu view-display-filters? |
Posted by: Anonymous - 03-24-2021, 05:53 PM - Forum: Scripting questions
- Replies (1)
|
 |
Hello, I'm trying to automate the addition of a contrast filter in GIMP, but I'm stuck.
Today I learned to make a GIMP plugin following a Youtube tutorial, and I started to modify it to do my task. The problem is that the only gimpfu function with "contrast" anywhere is pdb.gimp_drawable_brightness_contrast(drawable, brightness, contrast), which does not produce the same effect, but rather something like a photo filter.
I searched the python procedure examiner (i don't know if I translated that properly), and there's not a single function with "filter" in its name. The deepest function-like name I found was the one in the title, through testing in the shortcut configuration panel.
Can anybody help me? Thank you
|
|
|
popup cards |
Posted by: denzjos - 03-24-2021, 05:37 PM - Forum: Other graphics software
- Replies (2)
|
 |
Popup cards, every time a surprise when open one. To make such a card, OAcard can help you :https://caa1211.github.io/webOAcard/. One can save a design to work further another time (.oa file) or one can save the design as png file. One can load the png file in gimp to create a piece of art.
[attachment=5786]
The gimp .OA file
[attachment=5787]
|
|
|
Super Resolution |
Posted by: Occasionnel - 03-22-2021, 01:44 PM - Forum: General questions
- Replies (2)
|
 |
Hello
I am occasionnaly worker with GIMP and I am generally use it for photography.
I will need to generate a very large image full of pixel and I discover a tuto for PS:
Something like that with some actions I don't know in GIMP
- Bring all images into Photoshop as a stack of layers
- Resize the image to 200% width and 200% height using 'Nearest Neighbor'
- Auto align all the layers
- Average the layers by setting each layer's opacity to 1/layer number (the 1st layer will be 1/1 so 100% opacity, the 2nd layer will be 1/2 so 50% opacity, and the 4th layer will be 1/4 or 25% opacity, and so on).
- Sharpen the image using a Radius setting of 2, and a suitable Amount setting (we used 200% for the 4 image stack and 300% for the 20 image stack – the more images you stack the more amenable the composite will be to aggressive sharpening)
Alternatively, for the fourth step you can convert all layers to a 'Smart Object' and change the stacking mode to 'Median'. This can help deal with ghosting from movement in your final image, but can also take longer to process.
So looked for the same with linux tools (Gimp) but not able to find it out.
Is the smart object or other options that not permit to do the same ?
Thanks you all
|
|
|
|