@Okyl168
This is a very clever plug-in, Oberon ..I think it could be very useful. It certainly reduces the amount of guess-work compared with using Gimp's standard Perspective Tool ..at least for situations where you
know the shape that you want to transform part of the image to.
Just some minor points of nomenclature:
- in Gimp the term "
align" just means moving an item left/right and/or up/down to
align with something else ..what your plug-in is doing is
perspective transform and I think it should be named and described as such ..perhaps you could call it something like "python_fu_ob_perspective_transform" with blurb "Perspective transform from path to path";
- the terms "active", "target" and "reference" for the
paths can be a little confusing ..the term "target" is often used to refer to the image/layer to be worked upon (rather than the result) and "active" could mean either ..it may be better to use simple terms like "From path" and "To path" or "Initial shape path" and "Final shape path".
@David + Odin
Just to clarify what Okyl said above:
- the "active" path describes an area in the
input layer;
- the "reference" or "target" path describes the shape you want that area
transformed to;
- the necessary transformation is applied to the whole layer.
So to transform Issabella's monastery pic:
- select Path Tool, then click on each corner of the portico in turn (say bottom-left, top-left, top-right, bottom-right);
- in
Paths dialog, rename path as "active";
- in
Paths dialog, right-click and select New Path ..name it "ref";
- click on each corner of the rectangle (or other shape) that you want to transform the portico to, in the
same sequence as used for the "active" path;
- run Filters>Distorts>
Align to path, select the "active" and "ref"
paths respectively, then hit OK.
Just before running the plugin:
After running the plugin and then Fit-canvas-to-layers: