"The archive entry was compressed using an unsupported compression method." Exception when loading certain PNGs in Azure Function App v4 and .NET6 #2299
|
Hi, [
{
"assembly": "System.IO.Compression, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"level": 0,
"line": 0,
"method": "System.IO.Compression.Inflater.Inflate"
},
{
"assembly": "System.IO.Compression, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"level": 1,
"line": 0,
"method": "System.IO.Compression.Inflater.ReadInflateOutput"
},
{
"assembly": "System.IO.Compression, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"level": 2,
"line": 0,
"method": "System.IO.Compression.Inflater.ReadOutput"
},
{
"assembly": "System.IO.Compression, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"level": 3,
"line": 0,
"method": "System.IO.Compression.Inflater.InflateVerified"
},
{
"assembly": "System.IO.Compression, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"level": 4,
"line": 0,
"method": "System.IO.Compression.DeflateStream.ReadCore"
},
{
"assembly": "System.IO.Compression, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
"level": 5,
"line": 0,
"method": "System.IO.Compression.DeflateStream.Read"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 6,
"line": 0,
"method": "SixLabors.ImageSharp.Formats.Png.PngDecoderCore.DecodePixelData"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 7,
"line": 0,
"method": "SixLabors.ImageSharp.Formats.Png.PngDecoderCore.Decode"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 8,
"line": 0,
"method": "SixLabors.ImageSharp.Formats.Png.PngDecoder.Decode"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 9,
"line": 0,
"method": "SixLabors.ImageSharp.Image.Decode"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 10,
"line": 0,
"method": "SixLabors.ImageSharp.Image+<>c__DisplayClass54_01.<Load>b__0"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 11,
"line": 0,
"method": "SixLabors.ImageSharp.Image.WithSeekableStream"
},
{
"assembly": "SixLabors.ImageSharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null",
"level": 12,
"line": 0,
"method": "SixLabors.ImageSharp.Image.Load"
}
]We experienced this issue using ImageSharp 1.0.2. Upgrading to 2.1.3 results in the same behavior. |
Replies: 2 comments 3 replies
|
So the images work outside of the Azure function? If so then the issue is not with the library. There were issues with the deflatestream due to a breaking change in .NET 6 but that was fixed with #1707 Your stack trace only shows the old v1 ImageSharp version. |
So the images work outside of the Azure function? If so then the issue is not with the library.
There were issues with the deflatestream due to a breaking change in .NET 6 but that was fixed with #1707 Your stack trace only shows the old v1 ImageSharp version.