I am using IM and particularly montage in order to create a 1 big mosaic file from x number of tiles image:
Code: Select all
montage 032x/*/*.png -mode Concatenate -tile 64x64 -transpose -compress lzw 032x.tif
After googling I saw that I just need to quote to permit IM to the expansion itself (and not the shell):
Code: Select all
montage '032x/*/*.png' -mode Concatenate -tile 64x64 -transpose -compress lzw 032x.tif
So I try to find a workaround and I thought I found it. I will put the list of file in a file and then read the input from this file. To be able to test well I tried with a limited number of tiles:
Code: Select all
ls 002x/*/*.png > mylist.txt
montage @mylist.txt -mode Concatenate -tile 4x4 -transpose -compress lzw 002x.tif
The resulting images has what should be the first column placed at the end. So the first column become the last column and the 2nd column become the first.
I have
5 9 13 1
6 10 14 2
7 11 15 3
8 12 16 4
instead of
1 5 9 13
2 6 10 14
3 7 11 15
4 8 12 16
Obvioulsy I checked that the list in mylist.txt was in the right order:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I also tried to do that:
Code: Select all
ls 032x/*/*.png | montage @- -mode Concatenate -tile 64x64 -transpose -compress lzw 032x.tif
Conclusion:
- I did not find a way to get around "Argument list too long" problem. The 2 solutions I found were either not working (quote) or making problem (@file => column mixed)
- I found a non coherent behaviour: 2 different result depending how I put the arguments (inline or through a @filename)
Any help appreciated
