Skip to content
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

Half of specific PNG image fails to load on .NET 6 #1728

Closed
4 tasks done
PJB3005 opened this issue Aug 6, 2021 · 1 comment
Closed
4 tasks done

Half of specific PNG image fails to load on .NET 6 #1728

PJB3005 opened this issue Aug 6, 2021 · 1 comment

Comments

@PJB3005
Copy link

PJB3005 commented Aug 6, 2021

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 have this specific PNG image of which the bottom half gets cut off when I try to load it with ImageSharp. It only happens on .NET 6 (preview 6), .NET 5 is fine. No other editor/viewer I tried it with (paint, paint.net, krita, windows photo viewer (old and windows 10 one), chrome, firefox) fails to load this image.

here is the image:

000000drizzletest (5C8E5A1B4B577E68A21E1384B5A11C5B1A38B59AC5210C583C6D577CCAF96E23 SHA256 hash but github shouldn't change it on upload).

If I load and save this with ImageSharp, I get the following result:
foo

Re-saving the image by, for example, running it through optipng magically fixes the problem.

Steps to Reproduce

Download the image, then run it through some C# code like this:

var img = Image<Bgra32>.Load("000000drizzletest.png");

img.SaveAsPng("foo.png");

System Configuration

  • ImageSharp version: 1.0.3
  • Other ImageSharp packages and versions: None
  • Environment (Operating system, version and so on): Windows 10 Pro 19042.1110
  • .NET Framework version: .NET 6
  • Additional information: If you're wondering what made this cursed PNG file, it's an img Xtra for Adobe Director. No, you don't want to know.
@brianpopow
Copy link
Collaborator

that issue was fixed with #1707

You can try our nightly builds from here: Nightly

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

No branches or pull requests

2 participants