How to insert a single line spacing between tiles in a tiled image using Imagemagick?

I have a bunch of images that I want to combine into one line. This can be done with Imagemagick montage , like this

 montage `ls tile*.png` -tile x1 -gravity west -geometry 1x1\<+0+0 out_file.png 

However, now I want to insert one pixel of the interval after each fragment. I played a little with -tile-offset -1+0 , but that will not change anything. Similarly, I could use -geometry 1x1\<+1+0 , but that would mean two pixel spacing instead of one.

How can I make one pixel between fragments?

+4
source share
1 answer

If the images are a known size, you can simply make 1 pixel larger in the -geometry switch. Therefore, if the images are 256x256, use -geometry 257x256

+3
source

All Articles