GIMP Script-fu

Artifact [72a1db833a]
Login

Artifact 72a1db833a119db2cf3401ec54037eec86e8e167:

Wiki page [sg-anti-crop] by saulgoode 2014-07-06 15:30:58.
D 2014-07-06T15:30:58.456
L sg-anti-crop
P 6a92838bd93b7bdc02cc0f8a7171bdfe1fab475f
U saulgoode
W 1494
<dl><dt><b>Command:</b> <dd>Anti-crop</dd></dt>
<dt><b>Menu:</b> <dd>"<Image>/Layer/Anti-crop"</dd></dt>
<dt><b>PDB Name:</b> <dd>script-fu-sg-anti-crop</dd></dt>
<dt><b>Download:</b> <dd>[http://chiselapp.com/user/saulgoode/repository/script-fu/artifact/4ca3cf6d086c435e8fb20520e5acc5b472fe0cef|sg-anti-crop.scm] (after the page appears, click on the "Download" command)</dd></dt>
<dt><b>License:</b> <dd>[copyright|GPLv2+]</dd></dt>

<dt><b>Description:</b> <dd>The main purpose of this script is to remove either a horizontal or a vertical strip from a layer and then re-join the two outside regions. The "strip" is defined by a rectangular selection spanning the entire width or height of the layer.

<center><img src="http://barn.kerosenecow.net/mgoblin_media/media_entries/20/mid-horizontal.jpg" />
</center>

<center><img src="http://barn.kerosenecow.net/mgoblin_media/media_entries/19/mid-vertical.jpg" /></center>

If the selected region does not completely span the layer then, rather than generating an error, the script will extend the selection to the layer boundary, remove the resultant selection, and then re-join the remaining regions. In all cases, the resultant layer is centered relative to the location of the original layer.

<center><img src="http://barn.kerosenecow.net/mgoblin_media/media_entries/21/middle.jpg" />
</center>

<center><img src="http://barn.kerosenecow.net/mgoblin_media/media_entries/22/others.jpg" />
</center>
</dd>
</dt>
</dl>

Z 857776d36d580c02041270ca38cf6f4d