Page 1 of 1

Appending Image with a 10px width in between.

Posted: 2009-05-07T06:26:23-07:00
by vijayamaladoss
I have a requirement where I want to stitch images of same height and width (100x100). I want add a space or whitebackground of 10px width (preferably white) between each and every images.

I understand that I can manually create a image of 10x100 of whitebanner and stiching it with each every image at the end using convert +append option.

But is there is any option to do this automatically.

Thanks a lot.

Re: Appending Image with a 10px width in between.

Posted: 2009-05-07T10:11:23-07:00
by fmw42

Re: Appending Image with a 10px width in between.

Posted: 2009-05-07T19:25:22-07:00
by anthony
No problemo!!! use -splice

Splice a 10 pixel edge to each image, then remove the first edge after appending..

Code: Select all

   convert ...read_images... \
                -background white -splice 10x0+0+0  +append -chop 10x0+0+0 \
               result.png
Actually if you us 10x10+0+0 for -splice or -chop the direction of the append does not matter!
NOTE watch out for the effects of a -gravity setting on all THREE operators.

Re: Appending Image with a 10px width in between.

Posted: 2009-05-08T09:04:56-07:00
by vijayamaladoss
Thanks a lot :D :D . Splice and Chop worked like a Charm, though I didn't try montage.

Once again thanks a lot :)