GIMP Script-fu

Artifact [6a92838bd9]
Login

Artifact 6a92838bd93b7bdc02cc0f8a7171bdfe1fab475f:

Wiki page [sg-anti-crop] by saulgoode 2013-08-28 14:22:22.
D 2013-08-28T14:22:22.289
L sg-anti-crop
P 196022beee4fbd8463cd0793f037b41072228019
U saulgoode
W 1507
<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 respectively.

<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 f92963666c56d721efda72d471808f69