Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Slice into layers?
#1
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
Reply
#2
(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

   
Reply
#3
(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.
Reply
#4
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.
   

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.
Patrice
Reply
#5
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.

   

Ofnuts tiles plugin is picky about image dimensions.

   

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

   
Reply


Forum Jump: