Compose problems...

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
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Compose problems...

Post by Bonzo »

With the -geometry you just need -geometry +4+4

Try

Code: Select all

composite -geometry +4+4 polaroid-overlay.png photo.png photo.png 
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Compose problems...

Post by anthony »

Sorry that will not work.

In this case the 'overlay' is the larger image, so should be the destination image (whcih determines the final size of the results). The -geometry can be used to offset the other image which should be 'underlayed' using a 'DstOver' -compose method. Altrunativeally you can use -gravity center to center the image 'under' the destination 'overlay'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply