ImageSharp icon indicating copy to clipboard operation
ImageSharp copied to clipboard

PngDecoder: ImageFormatException: Image stream is not valid

Open ChrisVanDijk opened this issue 9 years ago • 1 comments

Prerequisites

  • [x] I have written a descriptive issue title
  • [x] I have verified that I am running the latest version of ImageSharp
  • [x] I have verified if the problem exist in both DEBUG and RELEASE mode
  • [x] I have searched open and closed issues to ensure it has not already been reported

Description

I have another png file which causes the following error:

ImageSharp.ImageFormatException: Image stream is not valid! at ImageSharp.Formats.PngDecoderCore.ReadChunkLength(PngChunk chunk) at ImageSharp.Formats.PngDecoderCore.ReadChunk() at ImageSharp.Formats.PngDecoderCore.Decode[TColor](Image1 image, Stream stream) at ImageSharp.Image1.Decode(Stream stream) at ImageSharp.Image`1.Load(Stream stream)

Steps to Reproduce

Try to open the following file: Error image

Resaved with Fireworks (works OK): Resaved and OK

System Configuration

  • ImageSharp version: 1.0.0-alpha2-00090
  • Other ImageSharp packages and versions: ImageSharp.Formats.Png: 1.0.0-alpha2-00086
  • Environment (Operating system, version and so on): Windows 10 Pro x64
  • .NET Framework version: .NET Core 1.1.0, NETStandard 1.6.1

ChrisVanDijk avatar Feb 22 '17 19:02 ChrisVanDijk

Thanks for the info. Give the latest version (1.0.0-alpha2-00111) a pop.

JimBobSquarePants avatar Feb 23 '17 01:02 JimBobSquarePants