RSS/Atom feed Twitter
Site is read-only, email is disabled

Script for perspective to square

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

Script for perspective to square Maripop 08 Sep 16:22
  Script for perspective to square rich2005 08 Sep 17:50
   Script for perspective to square rich2005 08 Sep 17:54
   Script for perspective to square Maripop 11 Sep 13:00
    Script for perspective to square rich2005 11 Sep 15:01
     Script for perspective to square Maripop 13 Sep 11:34
2017-09-08 16:22:37 UTC (over 6 years ago)
postings
3

Script for perspective to square

Dear all,

I am completely new to scripts in Gimp. I am looking for a script to automatize the following process : 1. Manually draw a path (4 corners of a distoreted square) 2. Apply perspective to get the square of fixed width 3. Crop and export.

• I found this, which is similar but not exactly what I want : http://gimpscripts.com/2015/04/perspective-and-rotation-from-path/ (and or some reason I can't get it to show in my menus..)

• this post seems interesting but it's bugged : gimpforums.com/thread-automate-the-correction-of-perspective-and-size

• apparently somethin existed at some point, but the link is broken : http://www.gimptalk.com/index.php?/topic/3902-script-fu-perspective-transform-to-rectangle/

Someone knows if such a script exists ?

Thanks.

rich2005
2017-09-08 17:50:43 UTC (over 6 years ago)

Script for perspective to square

Dear all,

I am completely new to scripts in Gimp. I am looking for a script to automatize the following process : 1. Manually draw a path (4 corners of a distoreted square) 2. Apply perspective to get the square of fixed width 3. Crop and export.

• I found this, which is similar but not exactly what I want : http://gimpscripts.com/2015/04/perspective-and-rotation-from-path/ (and or some reason I can't get it to show in my menus..)

• this post seems interesting but it's bugged : gimpforums.com/thread-automate-the-correction-of-perspective-and-size

• apparently somethin existed at some point, but the link is broken : http://www.gimptalk.com/index.php?/topic/3902-script-fu-perspective-transform-to-rectangle/

Someone knows if such a script exists ?

Thanks.

This plug-in ob_align.py might do what you require.

There is a download, and some information here:

http://gimpchat.com/viewtopic.php?f=23&t=12653&hilit=align+paths#p171524

A 'made up' example

You need two paths: screenshots https://i.imgur.com/RFVdDmI.jpg

Apply the plugin: https://i.imgur.com/mIniAvA.jpg

Set path to selection, and crop selection: https://i.imgur.com/vMsZv0I.jpg

Gives this: https://i.imgur.com/QW3umYU.jpg

rich2005
2017-09-08 17:54:18 UTC (over 6 years ago)

Script for perspective to square

Hate this mailing list format

Gives this: https://i.imgur.com/QW3umYU.jpg

no it does not, it gives as attachment

2017-09-11 13:00:58 UTC (over 6 years ago)
postings
3

Script for perspective to square

Hi,

Thanks for the tip.
However, I think I applied precisely all the steps but I don't obtain the result I expected (see screenshots attached). Do you know what could be wrong ?

This plug-in ob_align.py might do what you require.

There is a download, and some information here:

http://gimpchat.com/viewtopic.php?f=23&t=12653&hilit=align+paths#p171524

A 'made up' example

You need two paths: screenshots https://i.imgur.com/RFVdDmI.jpg

Apply the plugin: https://i.imgur.com/mIniAvA.jpg

Set path to selection, and crop selection: https://i.imgur.com/vMsZv0I.jpg

Gives this: https://i.imgur.com/QW3umYU.jpg

rich2005
2017-09-11 15:01:25 UTC (over 6 years ago)

Script for perspective to square

Hi,

Thanks for the tip.
However, I think I applied precisely all the steps but I don't obtain the result I expected (see screenshots attached). Do you know what could be wrong ?

I think the **active selection** is to blame. Keep the paths to 4 nodes / 3 sides Draw by hand, not selection to path.

If you need to use a selection to define the second path, you can use Image -> Guides -> New Guides from selection, kill selection and use the guides as a reference.

Looking at your images, it looks to me that:

You have a frame placed on the ground. Photograph taken

In Gimp you want: the frame adjusted and scaled to a smaller 'square'.

A made-up image of about the same size as the example. The end result is not pretty.

Screenshot 1 shows the paths and the ob_align.py dialogue.

Screenshot 2 shows the result.

rich: www.gimp-forum.net

2017-09-13 11:34:44 UTC (over 6 years ago)
postings
3

Script for perspective to square

Fantastic.

The unwanted selection was indeed causing the error.

This is going to save me hours of painful perspective adjustments !

I think the **active selection** is to blame. Keep the paths to 4 nodes / 3 sides Draw by hand, not selection to path.

If you need to use a selection to define the second path, you can use Image -> Guides -> New Guides from selection, kill selection and use the guides as a reference.

Looking at your images, it looks to me that:

You have a frame placed on the ground. Photograph taken

In Gimp you want: the frame adjusted and scaled to a smaller 'square'.

A made-up image of about the same size as the example. The end result is not pretty.

Screenshot 1 shows the paths and the ob_align.py dialogue.

Screenshot 2 shows the result.

rich: www.gimp-forum.net