Skip to content

Different PNG results under Windows / .net core and Mac, Linux, .net47 #702

@jherby2k

Description

@jherby2k

Description

I've noticed through some unit tests that I get a different PNG image when running my tests on Windows under .net core (2.1). Every other platform (OSX, Ubuntu, even .net framework on Windows) gets a different result. Both files are valid (decode back into the source bmp perfectly), they're just different. Maybe not a bug, but seems odd to me.

Steps to Reproduce

  1. Convert my test bitmap (attached, with a .txt extension because GitHub doesn't like .bmp files) to PNG using something like this:
using (var image = Image.Load(inputStream))
image.SaveAsPng(pngStream, new PngEncoder { ColorType = PngColorType.Rgb });
  1. Compare the resulting files. (Both results are attached)

System Configuration

  • ImageSharp version: 1.0.0-beta0005
  • Environment (Operating system, version and so on): Windows 10
  • .NET Framework version: .net core 2.1, .net framework 4.7.2
    Original.bmp.txt
    netstandard
    netcore

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