This project has moved and is read-only. For the latest updates, please go here.

Overlay with partial alpha

Feb 16, 2015 at 7:56 PM
I'm trying to do a simple overlay of an image with partial opacity on top of another image which is fully opaque. The problem is, the resulting image, instead of being fully opaque has partial opacity where the alpha was in the overlay. Almost like the alpha channel is being multiplied with the image, instead of being just an overlay. Any ideas?
version x64
MagickImage face = new MagickImage(myByte);
MagickImage overlay = new MagickImage("bubble_overlay.png");
MagickImage circleMask = new MagickImage("circle_mask.png");

face.Resize(183, 183);
face.Mask = circleMask;
MagickImage outfile = new MagickImage(MagickColor.Transparent, 265, 265);
outfile.Composite(face, Gravity.Center, CompositeOperator.SrcOver);
outfile.Composite(overlay, Gravity.Center, CompositeOperator.SrcOver);

Feb 16, 2015 at 9:58 PM
Edited Feb 16, 2015 at 9:59 PM
There have been some transparency bugs in IM7. Can you first upgrade to the latest version and see if that fixes your issue? If that doesn't fix it please post a link to the images you are using.
Feb 17, 2015 at 3:28 PM
Well version 09 fixed that bug, But seems to have introduced another. Now, the circleMask only sometimes masks correctly.It's leaving residual pixels from the black area of the mask ( leaving squareish edges of the face pic ).
Feb 17, 2015 at 4:06 PM
Edited Feb 17, 2015 at 10:28 PM
Can you post your images so I can reproduce the problem?

EDIT: Feel free to contact me through CodePlex if you don't want to share your images publicly.