To slice and merge images

Slices and joins scriptfu is useful when you want to split one image 'file' into smaller 'files', and to recombine it successively. One single image 'file' can be split into unlimited number of files. Image-slice script save on the file imagename.rcm all the data for the reconstruction.

For more information ..

Example

AttachmentSize
image-slice-and-join.zip3.36 KB

Comments

Bug

If nº of rows and columns is higher than 10 many file can be assigned to the same file name.

example:
x= 3 y= 12 => 312
x= 31 y= 2 => 312

This result in overwriting of files.

Fix: at composing the filename (line 184) and a separator, or add the leadding zeros.

PD: Same for related script: http://registry.gimp.org/node/13880

Solution to argument 2 must be: output_port

This error is because the output path name is invalid. You need to edit the .scm and replace "\\" with "/".

These are MS Windows path separators and this is assuming the bug arises running linux.

The solution does not work

Hi,
unfortunately
there is no \ character in slice-and-join.scm.
Regards,
ff

error

i get this error when i am trying to slice my picture: error when trying to use script-fu-image-slice: Error: write: argument 2 must be: output_port

No Alpha :(

I need this... but to export tiles with their alpha preserved. I can't use it for what I need while it places them on a white background. Can anyone fix this or give me an idea how I could do it myself (if it isn't too complicated :S) Thanks, though! It's very good otherwise!

Got the Alpha in!

Whee, and played with this language for the very first time. Ok I actually just made a couple of very small changes to your script to get an alpha transparency instead of a white background. Sorry.. x_x Here's the bit as it was: (set! newimage (car (gimp-image-new inWidth inHeight type))) (set! newlayer (car (gimp-layer-new newimage inWidth inHeight type "Sfondo" 100 NORMAL))) (gimp-image-add-layer newimage newlayer 0) (gimp-drawable-fill newlayer BG-IMAGE-FILL) (set! activelayer (car (gimp-image-set-active-layer newimage newlayer))) (set! floating-sel (car (gimp-edit-paste newlayer FALSE))) (gimp-floating-sel-anchor floating-sel) And here's what I changed it to: (set! newimage (car (gimp-image-new inWidth inHeight type))) (set! newlayer (car (gimp-layer-new newimage inWidth inHeight type "Sfondo" 0 NORMAL))) (gimp-image-add-layer newimage newlayer 0) ;(gimp-drawable-fill newlayer BG-IMAGE-FILL) (gimp-layer-add-alpha newlayer) (gimp-edit-clear newlayer) (set! activelayer (car (gimp-image-set-active-layer newimage newlayer))) (set! floating-sel (car (gimp-edit-paste newlayer FALSE))) (gimp-floating-sel-anchor floating-sel) Again, sorry for the butchery, but now this is exactly what I need! Very grateful, many thanks!!

Thank you!

Until The GIMP team get around to taking full advantage of GEGL, this script is excellent for editing *large* images. Finally I can just go and edit the section I need* without waiting for the swaptacular to end after each minor edit.
Syndicate content