Skip to content

Decoding malformed iPhone generated PNG throws 'Bad compression method for ZLIB header: cmf=237' #410

Description

@zeus82

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

Try loading the attached image and see that it generates a 'Bad compression method for ZLIB header: cmf=237' error. System.Drawing can open this image.

Steps to Reproduce

Image.Load(File.OpenRead("1.png"))

System Configuration

.NET Standard 2.0 Dll hosted in a .NET Framework 4.6.1 windows service

  • ImageSharp version: 1.0.0-beta0002
  • Other ImageSharp packages and versions: Sizlabors.Core 1.0.0-beta0004
  • Environment (Operating system, version and so on): Windows 10
  • .NET Framework version: 4.6.1
  • Additional information:

1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions