PDA

Vollständige Version anzeigen : [GIMP Registry] - Post Rotate Crop


Wilber
25.09.2009, 23:30
(A revised version of the script - the changes are listed below)

Whilst originally intended to be used following a rotation the script can also be used following
other transformations, such as perspective, scale and shear. The transparent areas added to the
image by the transformation are removed to leave an opaque rectangle.

The script provides options that determine how the resulting rectangle should be maximized.

This procdure is slow to operate as a script but it is then available to users of Windows, Linux
and Macs. Neither does it require the installation of Python. It would run very much faster if
coded in c and included in The GIMP.

If the opaque area of the image is significantly smaller than the image size it will be more
efficient to manually crop the image so that it is only slightly larger than the opaque area
and then run this script.

The script is accessed via Tools/Transform Tools/Post Rotate Crop

The script is not intended to work for opaque areas that include reflex angles.

This version of the script includes the following changes/corrections:

1. The user interface has changed slightly
2. Fixed potential endless loop when maximizing the rectangle.
3. Fixed problem where gimp-drawable-get-pixel could be called with the coordinates of a pixel
that was outside the area of the unrotated image.
4. Added aspect ratio options.

The attached file includes the script and a text file of instructions about its use.



Weiterlesen... (http://registry.gimp.org/node/18820)