Browse Source

Fix identify webp with alpha

pull/1985/head
Brian Popow 4 years ago
parent
commit
c93007c58b
  1. 1
      src/ImageSharp/Formats/Webp/WebpDecoderCore.cs

1
src/ImageSharp/Formats/Webp/WebpDecoderCore.cs

@ -305,6 +305,7 @@ namespace SixLabors.ImageSharp.Formats.Webp
if (ignoreAlpha) if (ignoreAlpha)
{ {
this.currentStream.Skip((int)alphaChunkSize); this.currentStream.Skip((int)alphaChunkSize);
break;
} }
features.AlphaChunkHeader = (byte)this.currentStream.ReadByte(); features.AlphaChunkHeader = (byte)this.currentStream.ReadByte();

Loading…
Cancel
Save