diff --git a/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs b/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs index 769c1a1caf..72000b8e99 100644 --- a/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs +++ b/src/ImageSharp/Formats/WebP/WebPDecoderCore.cs @@ -231,8 +231,8 @@ namespace SixLabors.ImageSharp.Formats.WebP // The first 28 bits of the bitstream specify the width and height of the image. var bitReader = new Vp8LBitreader(this.currentStream); - uint height = bitReader.Read(WebPConstants.Vp8LImageSizeBits) + 1; uint width = bitReader.Read(WebPConstants.Vp8LImageSizeBits) + 1; + uint height = bitReader.Read(WebPConstants.Vp8LImageSizeBits) + 1; return new WebPImageInfo() {