Page 1 of 1

merg 2 image in one A4 page

Posted: 2009-06-17T02:09:18-07:00
by ircoms
goodmoring;

i want to merg 2 image jepg ie the first image overlay the second in one A4 page have u any idea
cordialy

Re: merg 2 image in one A4 page

Posted: 2009-06-17T22:18:50-07:00
by anthony
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