From c93007c58bb61115ed26efc340281409f5386722 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Wed, 9 Feb 2022 19:20:21 +0100 Subject: [PATCH] Fix identify webp with alpha --- src/ImageSharp/Formats/Webp/WebpDecoderCore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImageSharp/Formats/Webp/WebpDecoderCore.cs b/src/ImageSharp/Formats/Webp/WebpDecoderCore.cs index cde8f612bb..01e604a4be 100644 --- a/src/ImageSharp/Formats/Webp/WebpDecoderCore.cs +++ b/src/ImageSharp/Formats/Webp/WebpDecoderCore.cs @@ -305,6 +305,7 @@ namespace SixLabors.ImageSharp.Formats.Webp if (ignoreAlpha) { this.currentStream.Skip((int)alphaChunkSize); + break; } features.AlphaChunkHeader = (byte)this.currentStream.ReadByte();