Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 4,777
» Latest member: Jamesnex
» Forum threads: 7,593
» Forum posts: 41,392
Full Statistics
|
Latest Threads |
Linux command that does e...
Forum: Other graphics software
Last Post: rich2005
41 minutes ago
» Replies: 1
» Views: 197
|
reliable Gimp 2.10.38 dow...
Forum: Older Gimp versions (2.8, 2.6....)
Last Post: denzjos
1 hour ago
» Replies: 2
» Views: 73
|
Batch Color Saturation
Forum: Extending the GIMP
Last Post: rich2005
10 hours ago
» Replies: 15
» Views: 11,696
|
Photo play-time
Forum: Gallery
Last Post: Ofnuts
11 hours ago
» Replies: 24
» Views: 21,600
|
BIMP plugin for GIMP 3.10
Forum: Extending the GIMP
Last Post: firefly
Yesterday, 11:53 PM
» Replies: 2
» Views: 507
|
pl_stroke_arrows GIMP 3.0...
Forum: Extending the GIMP
Last Post: Scallact
Yesterday, 04:03 PM
» Replies: 0
» Views: 195
|
How do you make text circ...
Forum: General questions
Last Post: rich2005
Yesterday, 07:18 AM
» Replies: 12
» Views: 3,219
|
New Install, Black Screen...
Forum: OSX
Last Post: akhrameev
09-11-2025, 02:32 PM
» Replies: 3
» Views: 2,904
|
Trouble changing backgrou...
Forum: General questions
Last Post: tomatoSauce23
09-11-2025, 12:50 PM
» Replies: 6
» Views: 1,438
|
Mishap fixed
Forum: Gimp-Forum.net
Last Post: MrsP-from-C
09-10-2025, 05:50 PM
» Replies: 1
» Views: 508
|
|
|
Way to draw a template for copying another region |
Posted by: sammyo - 10-30-2020, 05:32 PM - Forum: General questions
- Replies (1)
|
 |
Not quite sure how to google for this. Say an odd shaped region needs to have the background overlayed, like removing a patch. Is there a way to draw the edge of the patch, but copy the edge to the background, then copy the background within that patch? I guess I can start to see how a sequence of layers and masks would work but it seems like an option I'm just missing and would be really useful.
Thanks
|
|
|
Perspective transform revisited |
Posted by: Ottia Tuota - 10-28-2020, 05:11 PM - Forum: Extending the GIMP
- Replies (33)
|
 |
Here is a new plugin to perform Perspective transform (=projective transformation for a mathematician), based on two 4-anchor paths. To get it, go to
http://kmarkku.arkku.net/Miscellaneous_p...aster.html
edit: http://kmarkku.arkku.net/Perspective_tra...aster.html (url changed - rich)
move to the bottom row and click the Download button. You get a .zip file. Unzip it and put the sole file it contains (perspective_transform.py) to your user's plug-ins folder and restart Gimp. The plugin will be in Gimp's menu at Filters > Distorts > Perspective transform > ...
The plugin transforms the active layer. It asks for two paths, Source and Target. Both are supposed to be 4-anchor paths. The transformation will send the anchors of the Source onto the anchors of the Target. So, if you have a picture and in it you have some four specific points A,B,C,D that you would like to move to some other points P,Q,R,S, then:
- Create the Source path so that it has A,B,C,D as its anchors. Don't make it closed.
- Create the Target path so that it has P,Q,R,S as its anchors. Don't make it closed. Ensure that the ordering of P,Q,R,S in the Target path corresponds to the ordering of A,B,C,D in the Source path (excepting possible reversal).
- Make sure that the layer you want to transform is the active one.
- Open the plugin's GUI.
- If you want to retain the original layer as it is, so that the plugin will work on a copy, click the bottom entry (Keep the original layer?) to set it to Yes.
- Run the plugin.
- If the plugin runs ok and produces some result but it is somehow wrong, repeat but this time click the entry Use the target reversed? to Yes.
- If still not happy, look at the example case below.
- If the result is ok, you may wish to do Image > Fit Canvas to Layers.
Some inputs make the job impossible: the transformation would send some parts of the layer to infinity. This problem is inherent in the Perspective (projective) transformation; infinities do occur, and if they happen to lie in the region of the layer, then nothing can be done. If such happens, the plugin raises an error (an Exception). Your layer may be excessively large; crop it to its essential contents and try again. Or change the Source or Target path a little and try again.
The plugin also contains options to draw two special lines connected with infinities, provided that they intersect the image area. I say nothing about those here. You can just ignore them.
Example: I use the picture by Denzjos, which was what lead to this plugin; see https://www.gimp-forum.net/Thread-fix-distorted-round
The following picture tries to show the paths Source (red) and Target (blue) that I used. (The clock is dimmed just to show the paths better)
The Source path (red) is chosen from the hours 12,3,6,9 on the dial and left unclosed. The Target path (blue) has its anchors at the corners of a square tilted by 45 degrees. I made it as follows:
- Make a square selection.
- Do Selection to path. Rename the path to Target.
- Dismiss the selection.
- Rotate the Target by 45 degrees.
- Move and scale the Target so that it is close to the Source. (Not necessary.)
- Delete one edge from the Target, so that it is open at the same side as the Source.
Then, when I ran the plugin with these Source and Target, the result was somehow wrong. So I tried again but now using the target reversed. The result was reasonably good:
That's that. I attach here also the xcf file in case you wish to look at it more closely:
clock.xcf (Size: 1.35 MB / Downloads: 646)
The plugin was quite a rushed job. I mostly just copied pieces of code from an unpublished work. If you have problems with the plugin, please be kind enough to tell me. And you will certainly find points that could be made better. My knowledge about Gimp is rather rudimentary, so please make suggestions.
|
|
|
How to actually invert the fuzzy selection? |
Posted by: andreim - 10-28-2020, 01:22 PM - Forum: General questions
- Replies (9)
|
 |
Hi. I want to select the opposite of what is currently fuzzy selected. This at first glance would look like invert selection but it it's not. The selection has soft edges and when inverted it selects the remaining unselected pixels. And the selection is hard edged.
Intuitively when I invert selection I expect to select 1-alpha of the already selected pixels, plus the -- until then -- unselected pixels.
|
|
|
MULTIPLE OUTLINE COULOR |
Posted by: b229 - 10-28-2020, 10:36 AM - Forum: General questions
- Replies (1)
|
 |
I have an image im looking to ad an outline to but part of the image is black and other is white . what im looking to do is ad a black outline round the white and white round the black. I can get the outline but im wondering if there is anyway to change only parts of the outline colour and not it all at once. Im newish to gimp so there may be a way or something someone could recommend .
|
|
|
|