Skip to content

8bit PNG has color type of Bgra8888 #694

Closed
@CoenraadS

Description

@CoenraadS

Description

I have a 8bit grayscale png. Previously SkiaSharp returned the color type as Index8, but now that format has been removed. I would expect it now to say gray8, and one byte per pixel.

Code

using (var bitmap = SKBitmap.Decode(bytes))

Expected Behavior

gray8, 1 byte per pixel

Actual Behavior

image

Basic Information

  • Version with issue: 1.68.0-preview28
  • Last known good version: 1.60.3

Reproduction Link

201811211714461289_validpos_0_0_0_1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions