3

I have several JPG files from a PDF file, so concatenating the JPG files need to be "under each other". How can I do this?

gasko peter
  • 5,514

1 Answers1

3
ROWS="4"; montage -geometry 2550 -tile 1x$ROWS *.jpg output.jpg

geometry -> you need to know the original picture width, or at least give this a good value so the quality could be enough

tile -> how many "columns x rows" will the output have? (from the original jpg files) - $ROWS could be calculated with "ls -1 *.jpg | wc -l" if one folder contains all the jpg files.

*.jpg -> input jpg files

output.jpg -y the output jpg

gasko peter
  • 5,514