Gimp-Forum.net
Slice into layers? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Slice into layers? (/Thread-Slice-into-layers)



Slice into layers? - paulfh - 11-16-2023

I'm familiar with how to slice an image into separate images via Slice Using Guides, but what I would like to be able to do is slice into Layers within the source image. 

I know I can do it by manual selection but when creating a lot of slices it can become too time consuming and it can be tricky to get the slice sizes right. Does anyone know if there is a plugin or script available that can automate this process? What I would ideally like is an automatic way to:

Select number of equally sized slices
Select whether they are done horizontally or vertically
Have them cut and pasted into new Layers

GIMP 2.10.34 - Windows 10

Thanks
Paul


RE: Slice into layers? - rich2005 - 11-16-2023

(11-16-2023, 11:37 AM)paulfh Wrote: Select number of equally sized slices
Select whether they are done horizontally or vertically

An old script guides-grid.scm Find a download here: https://www.gimp-forum.net/Thread-Layer-New-guide-by-percent

Quote:Have them cut and pasted into new Layers  

One of ofnuts plugins guillotine-layer.py from http://sourceforge.net/projects/gimp-tools/files/scripts/  looks for ofn-guillotine-layer.zip dated 2017-04-30

[attachment=10596]


RE: Slice into layers? - Ofnuts - 11-16-2023

(11-16-2023, 11:37 AM)paulfh Wrote: I'm familiar with how to slice an image into separate images via Slice Using Guides, but what I would like to be able to do is slice into Layers within the source image. 

I know I can do it by manual selection but when creating a lot of slices it can become too time consuming and it can be tricky to get the slice sizes right. Does anyone know if there is a plugin or script available that can automate this process? What I would ideally like is an automatic way to:

Select number of equally sized slices
Select whether they are done horizontally or vertically
Have them cut and pasted into new Layers

GIMP 2.10.34 - Windows 10

Thanks
Paul

Looks exactly what my ofn-layer-tiles script is designed to do. And it will also do the opposite and reconstruct a big layer from many small layers.

If necessary its sibling ofn-tiles will export the sub-images as individual files instead of making layers.


RE: Slice into layers? - PixLab - 11-17-2023

There is also a solution with G'MIC > Layers > Tiles to Layers, no guides needed if your tiles should all be the same size
Transparencies between tiles is just to show the tiles, they will fit perfectly.
[attachment=10597]

Not as ordered as Ofnuts' plugins, the tiles will be stack on top of each other, but can be useful for a quick tiles to layers if it's just to export each layer to image.


RE: Slice into layers? - rich2005 - 11-17-2023

Well, as they say, you pays your money and makes your choice. It all depends what you want.

In order, 
Using guides, vertical strips with an offset.

[attachment=10599]

Ofnuts tiles plugin is picky about image dimensions.

[attachment=10600]

As PixLab mentioned, the gmic plugin makes strips without an offset.

[attachment=10601]