Composite Methods

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
venugopal
Posts: 2
Joined: 2012-06-01T22:22:37-07:00
Authentication code: 13

Composite Methods

Post by venugopal »

I am trying to a fashion designer tool where in users can drag, drop swatches( dresses) on to a mannequin. I am facing few issues - tried a lot with different option but couldnt reach the solution.

If a slim fit Dress is placed on top of loose fit dress - only the parts of loose fit which are not overlapped by slim fit should be visible. Rest all parts of loose fit should not visible ( it is covered by slim fit on top) - hope it is clear to understand

Looked at all possible composite options - DSTATOP was little close but this method is not solving my purpose.

Example Images :

https://picasaweb.google.com/venugopal. ... 9571121010 (First Dress)
https://picasaweb.google.com/venugopal. ... 3975651346 ( Second Dress , on top of the first one )

Expected Output :
https://picasaweb.google.com/venugopal. ... 9968176306 ( please observer First Dress is found only at neck region )

I have tried DSTATOP, but its removing the part at around the neck also....Please help or point me to the right direction. Already spent a lot of time on this.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Composite Methods

Post by fmw42 »

I do not believe there is any one compose method that does that. You want some transparent parts of the second dress to show and some not to show. To do that you have to customize or add a new mask to show only the parts you want to have shown. However, I will defer to other uses if they have some better ideas.
venugopal
Posts: 2
Joined: 2012-06-01T22:22:37-07:00
Authentication code: 13

Re: Composite Methods

Post by venugopal »

fmw42 wrote:I do not believe there is any one compose method that does that. You want some transparent parts of the second dress to show and some not to show. To do that you have to customize or add a new mask to show only the parts you want to have shown. However, I will defer to other uses if they have some better ideas.
Thanks for the reply. But we are doing it for 1000s of swatches. And creating masks for all possible permutations is impossible task. So trying to find a programmatic way to do this.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Composite Methods

Post by anthony »

The mask is not for the 'swatches', but for the shape of the 'dress'.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply