Put images together with overlapping

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
xpt
Posts: 59
Joined: 2010-10-06T20:18:24-07:00
Authentication code: 8675308

Put images together with overlapping

Post by xpt »

Hi,

Can the montage command take negative values for the -geometry parameter? -- I want to put two images together with overlapping in between them.

I tried composite -geometry ... f1 f2 -size new_size new_file,

but the output new_file still has the same size as f2.

Please help.

Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Put images together with overlapping

Post by fmw42 »

User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Put images together with overlapping

Post by anthony »

The trick is you also need blank images on the sides of the montage (empty cells) or the images will also be clipped.

An alturnative is to simply give the images an positional offset relative to each other, and 'layer merge' the images. With that method you can place image ANYWHERE you want relative to each other.

See Programmed positioning of images.
http://www.imagemagick.org/Usage/layers/#layer_prog


Oh and please let us see what you come up with. It is always interesting to see results and not just problems!
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply