Gimp-Forum.net

Full Version: Slice into layers?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
(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-...by-percent

Quote:Have them cut and pasted into new Layers  

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

[attachment=10596]
(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.
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.
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]