Closed
Description
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
andRELEASE
mode - I have searched open and closed issues to ensure it has not already been reported
Description
Loading a PNG file and immediately saving it as Jpeg works as expected on .NET 5. However when I switch to net6.0
in the csproj, only the top part of the image appears in the output jpeg file, the rest is black. The dimensions are preserved. Feel free to close this if you believe it's a bug in .NET and not anything to do with ImageSharp.
Steps to Reproduce
using var img = Image.Load("unknown.png");
var fs = File.OpenWrite("unknown.jpeg");
img.SaveAsJpeg(fs);
fs.Flush();
fs.Close();
Use this image
https://user-images.githubusercontent.com/5063478/126033585-4efb31ce-c231-4229-8412-68fb73950ffc.png
The result ont .NET 6 Preview 6 looks like this
https://user-images.githubusercontent.com/5063478/126033623-0f886133-bc0d-4449-8048-d5d29a0e377c.jpeg
System Configuration
- ImageSharp version: 1.0.3
- Environment (Operating system, version and so on): Win 10
- .NET Framework version:
- 5.0.400-preview.21277.10
- 6.0.100-preview.6.21355.2