Search found 24 matches

by svengineer99
2016-05-26T13:30:37-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

Thanks! I will stick with method 1 (on IM7) for now.
by svengineer99
2016-05-26T12:53:42-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

Thanks for all the alternate methods. For future proofing the scripts I am working on now, do you think the 4th (simplest) method has at least as good of chance as the others of remaining working with future IM revision/release?
by svengineer99
2016-05-25T14:39:06-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

Thanks snibgo, fmw42, I'm happy now. Thanks to all your help and tips! I'm just realizing how complex the overlay behavior is with transparency. The default behavior of over, blend and dissolve seem a bit odd, that's all I was trying to convey in my last post, but I guess there is no 'right' answer ...
by svengineer99
2016-05-25T13:30:33-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

Using -compose src for the overlay does not work for me: magick m_bgnd.png m_masked.png -compose src -composite m_over_masked.png Wipes out the background: https://www.dropbox.com/s/kyd74nvl7v3lxb8/m_over_masked_1.0_src.png The example images are partially transparent (filled circles with ...
by svengineer99
2016-05-25T10:07:57-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

Great. So referring back to the v6 Compose Mask and Transparency example http://imagemagick.org/Usage/compose/#mask, I think the simplest work around for v7 should be to replace: composite m_src.png m_bgnd.png m_mask.png m_over_masked.png with magick m_src.png m_mask.png ( -clone 0 -alpha extract ...
by svengineer99
2016-05-24T23:00:40-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

The first one (masked partially transparent source over unmasked partially transparent background) would be much more useful to me than the second (masked partially transparent source over masked partially transparent background). Thank you and snibgo again for all your help!
by svengineer99
2016-05-24T21:52:48-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

That worked! Thank you!! I can use this right now!..

Although, it would be nice if something like the prior working simple method could work again in the future. Would you recommend to submit a separate bug post about it, linking to this thread, or something else?
by svengineer99
2016-05-24T20:26:10-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

The first is the image and second is the mask. So this should be the one that works. magick m_src.png m_mask.png ( -clone 0 -alpha extract ) ( -clone 1 -clone 0 -compose multiply -composite ) -delete 1,2 -alpha off -compose copy_opacity -composite result.png Since you are using IM 7, change convert ...
by svengineer99
2016-05-24T16:10:29-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

convert swCkD.png gHRFF.png \ \( -clone 0 -alpha extract \) \ \( -clone 1 -clone 0 -compose multiply -composite \) \ -delete 1,2 \ -alpha off -compose copy_opacity -composite \ result.png [/quote] Sorry, I'm not sure which should be the mask and which should be the source, but I'm not getting a ...
by svengineer99
2016-05-24T15:40:57-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

@fmw42 - Thanks for the example. It works for me as you described. However, what I was really after was the half red circle over the full blue circle (masking one alpha image placed over another alpha image). Could I trouble you for another example how to do that? Actually just masking the half red ...
by svengineer99
2016-05-24T15:16:20-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Re: Compose Mask and Transparency using magick.. -composite

Thanks for confirming it. Could you provide an example how to 'multiply the mask times the alpha channel of the two images and then flatten them over a transparent background' for the case above? My experience with getting IM syntax correct on my own is not so good. Edit -sorry I see you included an ...
by svengineer99
2016-05-24T14:09:52-07:00
Forum: Users
Topic: Compose Mask and Transparency using magick.. -composite
Replies: 44
Views: 47945

Compose Mask and Transparency using magick.. -composite

Running Windows ImageMagick 7.0.1-2 Q16 (64-bit) (2016-05-08) I'm having trouble with alpha masking. Unfortunately the documentation at http://imagemagick.org/Usage/compose/#mask is obsolete (using composite command). Trying to use magick.. -composite I'm not getting the expected result: magick ...
by svengineer99
2016-05-11T23:34:30-07:00
Forum: Users
Topic: Montage command equivalent in version 7 without legacy command support?
Replies: 10
Views: 9910

Re: Montage command equivalent in version 7 without legacy command support?

They were all similar 'bad syntax' that previously worked flawlessly to on IM6.
by svengineer99
2016-05-11T22:59:47-07:00
Forum: Users
Topic: Montage command equivalent in version 7 without legacy command support?
Replies: 10
Views: 9910

Re: Montage command equivalent in version 7 without legacy command support?

I had problems with >50% of my previusly working fine convert statements (even with legacy convert support enabled) due to issues like the one you helped me resolve at http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=29582. And 100% of my commands required replacing convert and ...
by svengineer99
2016-05-11T17:47:26-07:00
Forum: Users
Topic: Montage command equivalent in version 7 without legacy command support?
Replies: 10
Views: 9910

Re: Montage command equivalent in version 7 without legacy command support?

Thanks for both your comments. As a practicing engineer myself, it still seems crazy to me that I'm having to re-write all my scripts to work on IM7. In some cases it's been trivial but others have not (earlier bug post). Anyways, I don't want to seem ungrateful, because I really am grateful for the ...