-
-
Notifications
You must be signed in to change notification settings - Fork 854
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
Bug in .NET 6.0 which does not occur in .NET 5.0 when saving and loading png #1765
Comments
This is most likely duplicate of #1704, which got fixed by #1707. Can you please check if it works with the nighlties? |
Will do... |
My searching(/understanding) of the issues was not enough apparently, also works currently on my pc & github actions. So I guess close me as duplicate. |
@antonfirsov could my test case / image be a good addition to the imagesharp test suit (as a regression test mayhaps)? If so I could create/shape a PR this evening/tomorrow. |
Yeah #1707 went in without a test, a test case would be an addition we appreciate! |
Prerequisites
DEBUG
andRELEASE
modeDescription
I use a library to render PDF pages to image data. This data is in BGRA format. I then use
Image.LoadPixelData<Bgra32>(bytes, width, height)
to load the data, and then use the data.In my unit test for this library I load the Bgra32 data after rendering, then save as PNG. Later on I open that file/stream again using
Image.Load
. It then throws an exception:SixLabors.ImageSharp.ImageFormatException : Bad method for ZLIB header: cmf=32
.Steps to Reproduce
I have saved the raw bgra data into a file, and made a minimal bug sample. The test run on GitHub actions can be found here: https://github.com/synercoder/ImageSharpNet6Bug/runs/3675201091?check_suite_focus=true
As can the minimal sample test: https://github.com/synercoder/ImageSharpNet6Bug/blob/main/ImageSharpBugTests/BugTests.cs
System Configuration
The text was updated successfully, but these errors were encountered: