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.
Composite Methods
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Composite Methods
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.
Re: Composite Methods
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.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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Composite Methods
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/
https://imagemagick.org/Usage/