How generate tiles 3x3 with im4java?

47 Views Asked by At

can you help me with im4java? I need to generate tiles 3x3 from 9 jpg-picture. How do I do it?

1

There are 1 best solutions below

0
fmw42 On

I do not know im4java, but in ImageMagick command line you can do that as follows. I will use the same JPG picture 9 timed for simplicity.

montage lena.jpg -duplicate 8 -tile 3x3 -geometry +0+0 lena9a.jpg

enter image description here

Alternately,

convert lena.jpg \
\( -clone 0 -duplicate 2 +append \) \
\( -clone 0 -duplicate 2 +append \) \
\( -clone 0 -duplicate 2 +append \) \
-delete 0 \
-append lena9b.jpg

enter image description here

Just replace my duplicate commands with your other images