It is currently Fri Jun 12, 2026 6:16 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Slice active layer using guide
PostPosted: Wed Apr 10, 2019 5:49 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2639
Location: Poland
In GIMP menu: Image/Transform/Slice active layer using guide...

This simple plugin divides the active layer: [in current image or in new image] into two parts using a guide:[Use existing guide/Create by center Vertical (x)/Create by center Horizontal (y)/Create by coordinate Vertical (x)/Create by coordinate Horizontal (y)] and is a complement to:

1.Guillotine (by Adam D. Moss):

Slice the image into subimages using guides.
This function takes an image and slices it along its guides, creating new images.
The original image is not modified.


2. Guillotine into layers (by Randall Sawyer):

Slice visible contents of image along guides into layers of a new image.
Guillotine-into-Layers is a variation on the standard plug-in Guillotine.
This plug-in creates a new image with a number of layers - one for each rectangular region defined by the guides and edges of the original image.
The visible contents of each rectangular region are copied, and then pasted as a unique layer of the new image.
The new image derives its name from that of the original.
It is given the suffix '*.xcf' so that it can be readily saved in a format which preserves multiple layers.
The original image is unaffected.


3. Ofn-guillotine-layer (by Ofnuts):

This plug-in/script implements something similar to Image>Guillotine at the layer level:
the active layer is sliced into new layers using the guides as division lines.
The original layer is kept but made invisible.
The script is started from Layer>Guillotine. There are no parameters.


The code snippet comes from the plugin:
Guides_to_path.py by Tin Tran https://gimplearn.net/viewtopic.php?f=3 ... o+path#p62


Attachments:
Slice layer.png
Slice layer.png [ 526.85 KiB | Viewed 5057 times ]
Slice layer using guide.zip [1.74 KiB]
Downloaded 262 times

_________________
Image


Last edited by MareroQ on Thu Apr 11, 2019 8:17 am, edited 1 time in total.
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Slice active layer using guide
PostPosted: Wed Apr 10, 2019 7:57 pm  (#2) 
Offline
Administrator
User avatar

Joined: Aug 10, 2012
Posts: 14018
Location: Native to NYC living in Arizona, Gimp 2.8 - 3.0, Win 11 PC.
:coolthup
Thanks MareroQ

_________________
Image
"A wise man learns more from a foolish question than a fool can learn from a wise answer"
Image


Top
 Post subject: Re: Slice active layer using guide
PostPosted: Thu Apr 11, 2019 1:56 am  (#3) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4812
There is also an ofn-guillotine-layer plugin :)

_________________
Image


Top
 Post subject: Re: Slice active layer using guide
PostPosted: Thu Apr 11, 2019 8:19 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2639
Location: Poland
Hi Ofnuts.

I apologize for my ignorance. :oops:
Unfortunately, I did not know this plugin before - although I thought I knew all the plugins included on:
https://sourceforge.net/projects/gimp-path-tools/files/scripts/
https://sourceforge.net/projects/gimp-tools/files/scripts/

I fixed my mistake in post # 1.

_________________
Image


Top
 Post subject: Re: Slice active layer using guide
PostPosted: Thu Apr 11, 2019 8:28 am  (#5) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2603
Just a note. In Gimp 2.10.10 Image -> Transform -> Guillotine is now Image -> Slice using Guides.

Exactly the same function, easier to spell ;)


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group