merg 2 image in one A4 page

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
ircoms

merg 2 image in one A4 page

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: merg 2 image in one A4 page

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply