From 8756c32a741d4d8e129ea0e494d814b5bcd7dc72 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Thu, 13 Apr 2023 18:50:04 +0200 Subject: [PATCH] Fix retrieving wrong tile height, fixes #2435 --- src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs b/src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs index 45bbed12d5..aed6d4ec66 100644 --- a/src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs +++ b/src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs @@ -344,7 +344,7 @@ internal class TiffDecoderCore : IImageDecoderInternals ArgumentNullException.ThrowIfNull(valueWidth); } - if (!tags.TryGetValue(ExifTag.TileWidth, out IExifValue valueLength)) + if (!tags.TryGetValue(ExifTag.TileLength, out IExifValue valueLength)) { ArgumentNullException.ThrowIfNull(valueLength); }