Composite an Image based on fixed criteria

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
JagVoylla
Posts: 17
Joined: 2014-08-01T11:34:57-07:00
Authentication code: 6789

Composite an Image based on fixed criteria

Post by JagVoylla »

IM team,

I have received great hep so far from this forum. I could save quite some time processing images. I now know how to apply level and get almost ready to use images. Last piece of puzzle for me is to composite this images based on certain rules . Please see these images for example

1 )https://www.dropbox.com/s/zg44un84x94h0 ... .jpeg?dl=0

2 ) https://www.dropbox.com/s/99szd6k1pipk5 ... .jpeg?dl=0

The result needs ot be somewhat like this : -https://www.dropbox.com/s/2tnnzlesflpp9 ... d.jpg?dl=0

So the problem is to contain the necklace in upper rectangle and then fit in earrings in bottom two rectangle. Based on earrings dimension9can read from an xml, I may need to zoom in/out earrings to give correct perception. At time I also need to show these two earrings, and again based on dimension, zoom in /out to fill in negative space . What is the best ay to accomplish this and first problem above using IM.

Thanks
JagV
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: Composite an Image based on fixed criteria

Post by Bonzo »

You can position the objects on a canvas e.g. -gravity north for the necklace and -gravity southwest and -gravity southeast for the earrings.

I would guess you would need to read the dimensions from the xml file into variables and would need a small piece of code to do this then feed them to your IM command.
Post Reply