Using montage of image-magic I am trying to stack two types of the images producing vertincal table with 2 lines and x columns
montage \( "${output}/proc*.png" \) \( "${output}/${target}*.png" \) -geometry 1200x900+1+1 -frame 4 -background white -mattecolor lightgoldenrod2 -mode Frame -bordercolor white ${output}/${project_summary}.png
the problem that instead of 2 lines it produces the rectangular table mixing the both types of the images. This could be fixed using -tile x2. How could I determine tile size (x2 in this case) automatically according to the number of the blocks in the montage defined as ( "${output}/image_type.png" )