-
-
Notifications
You must be signed in to change notification settings - Fork 888
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
DEBUGandRELEASEmode - I have searched open and closed issues to ensure it has not already been reported
ImageSharp version
2.0.0
Other ImageSharp packages and versions
2.0.0
Environment (Operating system, version and so on)
Win10 Pro, 10.0.19044 N/A Build 19044, VS 2022
.NET Framework version
.NET Core 6, Target OS Windows, Support OS version 7, platform x64
Description
System.ArgumentException
HResult=0x80070057
Message=Destination is too short. (Parameter 'destination')
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowArgumentException_DestinationTooShort()
at SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors.JpegTiffCompression.CopyImageBytesToBuffer(Span1 buffer, Buffer2D1 pixelBuffer)
at SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors.JpegTiffCompression.Decompress(BufferedReadStream stream, Int32 byteCount, Int32 stripHeight, Span1 buffer) at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderCore.DecodeStripsChunky[TPixel](ImageFrame1 frame, Int32 rowsPerStrip, Span1 stripOffsets, Span1 stripByteCounts, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderCore.DecodeFrame[TPixel](ExifProfile tags, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.Tiff.TiffDecoderCore.Decode[TPixel](BufferedReadStream stream, CancellationToken cancellationToken)
at SixLabors.ImageSharp.Formats.ImageDecoderUtilities.Decode[TPixel](IImageDecoderInternals decoder, Configuration configuration, Stream stream, Func3 largeImageExceptionFactory) at SixLabors.ImageSharp.Formats.ImageDecoderUtilities.Decode[TPixel](IImageDecoderInternals decoder, Configuration configuration, Stream stream) at SixLabors.ImageSharp.Formats.Tiff.TiffDecoder.Decode[TPixel](Configuration configuration, Stream stream) at SixLabors.ImageSharp.Formats.Tiff.TiffDecoder.Decode(Configuration configuration, Stream stream) at SixLabors.ImageSharp.Image.Decode(Stream stream, Configuration config) at SixLabors.ImageSharp.Image.<>c__DisplayClass139_0.<Load>b__0(Stream s) at SixLabors.ImageSharp.Image.WithSeekableStream[T](Configuration configuration, Stream stream, Func2 action)
at SixLabors.ImageSharp.Image.Load(Configuration configuration, Stream stream, IImageFormat& format)
at SixLabors.ImageSharp.Image.Load(Configuration configuration, String path, IImageFormat& format)
at SixLabors.ImageSharp.Image.Load(Configuration configuration, String path)
at SixLabors.ImageSharp.Image.Load(String path)
at Program.
Steps to Reproduce
using (var img = Image.Load(srcFilePath))