Command like montage dont take a list of files as an input argument. What to do? simple, just open your list of files..
in bash this is easy:
montage `cat tmp.txt` -resize 150x150 -crop 150x150+0+0 -gravity center -tile 8x8 -geometry +7+7 -page A4 filename.jpg
within a makefile rule it becomes a bit more complicated, you have to echo a variable where you cat the file
montage `echo $$(cat tmp.txt)` -resize 150x150 -crop 150x150+0+0 -gravity center -tile 8x8 -geometry +7+7 -page A4 $@
No comments:
Post a Comment