-
-
Notifications
You must be signed in to change notification settings - Fork 851
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mutation to transparent background doesn't work sometimes #931
Comments
Hi @xakep139 Your output images are 24bit. This can only happen when the You'll need to explicitly set the |
@JimBobSquarePants, thanks for the quick response! Changing |
Most definitely. We need to give those samples some love. |
A reminder that I should take care of this when l'll touch the samples because of #907. |
I suppose this issue should be closed ) Thanks for the help! |
Prerequisites
DEBUG
andRELEASE
modeDescription
I'm not sure that it's a bug, maybe I've just missed something, Before beta006 (more specifically, on version
1.0.0-dev001621
) we made transparent background like this: https://github.com/SixLabors/Samples/blob/625dd0ace7c30ed9cb3dc7a48304471e0bd91b76/ImageSharp/AvatarWithRoundedCorner/Program.cs#L87After #882 we moved to
1.0.0-dev002548
and changed logic to: https://github.com/SixLabors/Samples/blob/master/ImageSharp/AvatarWithRoundedCorner/Program.cs#L85 (but this could be reproduced on latest1.0.0-dev002737
as well)But some pictures have black background after upgrading, not transparent.
Steps to Reproduce
Sample project https://github.com/SixLabors/Samples/tree/master/ImageSharp/AvatarWithRoundedCorner could be used with the following image: image.zip
Here's the output of different versions of ImageSharp: outputs.zip
System Configuration
1.0.0-dev002737
SixLabors.ImageSharp.Drawing 1.0.0-dev002737
The text was updated successfully, but these errors were encountered: