I have written a script that will do this. If a horizontal selection is made
across a layer, the script cuts out the selection and joins the top and bottom.
If a vertical selection is made across the height of a layer then it joins the
left and right unselected regions. The script is located at
http://www.postbrickfilms.com/saulgoode/GIMP/anti-crop.scm

IMPORTANT NOTE: If the selection is other than a horizontal or a vertical
"strip" across the entire width or height of the layer, this script will behave
in the following manner (much harder to describe than to use)...

If the layer is considered to be the combination of 9 rectangular regions:

123
456
789

The horizontal strip case could be described as "456" being the selection.
Performing "anti-crop" on the horizontal selection ("456") leaves

123
789

Similarly, for vertical strip selection ("258"):

13
46
79

Left half selection ("124578") leaves:

3
6
9

Central selection ("5") leaves:

13
79

Corner selection (such as "1245") leaves:

9

Center edge selection (such as "25") leaves:

79
_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to