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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,023
» Latest member: Thomashor
» Forum threads: 7,750
» Forum posts: 42,118

Full Statistics

Latest Threads
Too many fonts - where ar...
Forum: General questions
Last Post: marty39
8 minutes ago
» Replies: 5
» Views: 281
Cropping Image
Forum: General questions
Last Post: rinaldop
2 hours ago
» Replies: 13
» Views: 561
View several new image ic...
Forum: General questions
Last Post: Veset
Yesterday, 02:23 PM
» Replies: 3
» Views: 174
an iOS app that assists p...
Forum: Other graphics software
Last Post: zzh
12-26-2025, 01:10 PM
» Replies: 5
» Views: 611
Alivecolors
Forum: Other graphics software
Last Post: denzjos
12-25-2025, 08:27 AM
» Replies: 0
» Views: 119
gimp 3 and 8bf files
Forum: Extending the GIMP
Last Post: denzjos
12-24-2025, 02:03 PM
» Replies: 0
» Views: 173
Preferences/Folders shows...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: programmer_ceds
12-24-2025, 10:08 AM
» Replies: 5
» Views: 3,093
Problems with AppImages.
Forum: Installation and usage
Last Post: teapot
12-23-2025, 07:45 PM
» Replies: 2
» Views: 388
Why am'I fighting with GI...
Forum: Linux and other Unixen
Last Post: NetWeeZurd
12-23-2025, 01:44 AM
» Replies: 2
» Views: 240
Can tooltip display time ...
Forum: Gimp 2.99 & Gimp 3.0
Last Post: NetWeeZurd
12-23-2025, 01:40 AM
» Replies: 4
» Views: 1,344

 
  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:

  1. Create the Source path so that it has A,B,C,D as its anchors. Don't make it closed.
  2. 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).
  3. Make sure that the layer you want to transform is the active one.
  4. Open the plugin's GUI.
  5. 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.
  6. Run the plugin.
  7. 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.
  8. If still not happy, look at the example case below.
  9. 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:
  1. Make a square selection.
  2. Do Selection to path. Rename the path to Target.
  3. Dismiss the selection.
  4. Rotate the Target by 45 degrees.
  5. Move and scale the Target so that it is close to the Source. (Not necessary.)
  6. 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:


.xcf   clock.xcf (Size: 1.35 MB / Downloads: 703)

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.

Print this item

  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.

Print this item

  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 .

Print this item

  Messing about with video
Posted by: rich2005 - 10-28-2020, 10:14 AM - Forum: Gallery - Replies (1)

Adding some effects to a video clip using gimp_gmic_qt and BIMP. Of course the video was rendered to frames for this. A bit of brightening and the Kuwahara gmic filters, turned out a bit like pixelation. Wink  However the real story is in the audio.

https://youtu.be/-TVYsZjPf20   50 seconds



Print this item

  Error
Posted by: aleclyle88 - 10-27-2020, 06:05 PM - Forum: General questions - Replies (1)

I tried plug in installed the error

[Image: errer.jpg]



Let me know

Print this item

Question Help is not working in the program!
Posted by: TF8009 - 10-26-2020, 02:46 PM - Forum: General questions - Replies (2)

Quote:help-browser.exe Message

Parse error in 'https://docs.gimp.org/2.10/en/gimp-help.xml':
GET request failed: WinHttp error: SECURE_FAILURE


This is the message i get when i am using the 2.10.22 help options in the program. F1 and Shift+F1 do not work but produce the above message, so do the Help->User Manual->... options. I downloaded and installed the gimp-help-2.10.0-en-setup executable from the website but nothing changed.

So is there somewhere i can fix the connection settings? In order to have offline manual help.

Print this item

Photo Opening images through context menu: Images not in alphabetical order
Posted by: Pantersnigeln - 10-25-2020, 06:21 PM - Forum: General questions - Replies (7)

Using Windows 7 and Gimp 2.10.22
New to the forum. Let me know if this is in the wrong place.

After the "Edit with Gimp" button disappeared from the Explorer context menu I've reassigned the context menu Edit button to send images to Gimp.

When I select multiple images and click Edit in Explorer, they're loaded into Gimp, but not in alphabetical order. This is very annoying. Is there a reason for this? When the images are loaded in a jumbled order it's very hard to get a good overview and see which images are similar and need similar editing (I edit plant photos and the files are named after the plant species and variety).
Is the load order deliberately set in a different way (=not alphabetical) because more people prefer it that way? If not; is this something that could be ammended in a coming release, or offered as an option in the Gimp preferences?

Opening the images through Gimp lets me load them in alphabetical order, but I move the finished images around on my harddrive, so since I'm in Explorer in between editing it's faster for me to load the next bunch directly from Explorer.


Another thing that is also mildly annoying but not a big deal: When Gimp is closed and I select, say 10, images and click Edit in the Explorer contect menu; 10 separate Gimp windows are opened. When Gimp is already opened, the 10 images are instead loaded into Gimp in one window as they should be. Can this be ammended or is it a Windows thing?

Print this item

  Layer Effects plugin don't works on 2.10.21
Posted by: MarkLecarde - 10-25-2020, 10:17 AM - Forum: General questions - Replies (10)

Hello, I'm Gimp user on Linux, and I just migrated from Photoshop CS6 (in order to don't suffer using Wine). I installed PhotoGimp mod and was ready to use the soft, when I found the abscence of Layer Effects (or any analogue) in Gimp. I surfed the net to find the solution and learned about the Layer Effects plugin. I correctly (I'm sure about that) installed it, however, I couldn't make it work (show up in "Layer" or in "Script-Fu"). As I understand it, this problem is popular and still does not have a single correct solution.

Print this item

  Scripting help at my new job
Posted by: Deathharmonicon - 10-23-2020, 05:34 PM - Forum: Scripting questions - Replies (4)

So I’ve dabbled in scripting before but am not super well versed in it. However, I just took on a position at my job doing image editing for our online webstore. I’m able to do it easy enough in GIMP, but it’s doing the same edit over and over and I know that there has to be a way to script it so that I can do so more efficiently, I just have been having a hard time trying to understand how to write the script. I have access to Python-fu and Script-fu, but would prefer to use Python. 
So here’s what I do to each image. Once I’ve gone through and manually selected what I need to, I do the same series of actions every time, and this is what I’m trying to script:

1. Layer > Transparency > Add Alpha Channel

2. Edit > Clear (or Hit Delete)

3. Deselect (Not absolutely necessary)

4. Image > Canvas Size > Height: 950 > Width: 950 > Center > Resize

5. File > Export As > ‘file name’.png > Export (Exporting the image and changing it from jpg to png)


And that’s it. I open an image, select the background, and then do those same steps every single time. So I was wondering if anyone could help me figure out the script for doing this every time. It would expedite the process to go so much quicker and I would greatly appreciate it. Thanks!

Print this item

  fix distorted round
Posted by: denzjos - 10-23-2020, 08:47 AM - Forum: General questions - Replies (12)

Is there a way to fix images with distorted round objects to perfect round objects? I think of a plugin / script where one can place a few points on the distorted circle or use a path / selection. Playing with the different gimp tools is time consuming to get a good result. An example to correct :
   

Print this item