Overlay the images on a A4 page image of the right size!
their are many ways to do this, which are listed on...
http://www.imagemagick.org/Usage/layers/
the next question -- how big is an A4 page????...
well you can get IM to generate one, he right size for a particular density, in a tricky way...
For example at 72dpi (default density) IM reports that an A4 page is...
Code: Select all
convert -page A4 text:/dev/null info:
text:/dev/null TEXT 595x842 595x842+0+0 16-bit DirectClass
or 595 pixels by 842 pixels.
At 100dpi it is
Code: Select all
convert -page A4 -density 100 text:/dev/null info:
text:/dev/null TEXT 826x1169 595x842+0+0 16-bit DirectClass
See IM examples, Text Paged Image
http://www.imagemagick.org/Usage/text/#text
Hmmm the virtual-canvas size seem to be incorrect -- looks like a bug in the text: image generator.
I updated the above Example section to include the example
Code: Select all
convert -page A5 -density 100 -units PixelsPerInch text:/dev/null \
-format 'Page Size at %x = %w x %h pixels' info:
which returns
Page Size at 100 PixelsPerInch = 583 x 826 pixels