Skip to content

Mutation to transparent background doesn't work sometimes #931

Closed
@xakep139

Description

@xakep139

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

Description

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#L87
After #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 latest 1.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

  • ImageSharp version: 1.0.0-dev002737
  • Other ImageSharp packages and versions: SixLabors.ImageSharp.Drawing 1.0.0-dev002737
  • Environment (Operating system, version and so on): Windows 10 Enterprise version 1809 build 17763.475
  • .NET Framework version: dotnet SDK 2.1.603
  • Additional information:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions