Browse Source

fix typo

pull/1552/head
Peter Amrehn 7 years ago
parent
commit
4599713c31
  1. 4
      src/ImageSharp/Formats/WebP/WebPDecoderCore.cs
  2. 4
      src/ImageSharp/Formats/WebP/WebPImageInfo.cs

4
src/ImageSharp/Formats/WebP/WebPDecoderCore.cs

@ -72,7 +72,7 @@ namespace SixLabors.ImageSharp.Formats.WebP
var image = new Image<TPixel>(this.configuration, imageInfo.Width, imageInfo.Height, this.metadata); var image = new Image<TPixel>(this.configuration, imageInfo.Width, imageInfo.Height, this.metadata);
Buffer2D<TPixel> pixels = image.GetRootFramePixelBuffer(); Buffer2D<TPixel> pixels = image.GetRootFramePixelBuffer();
if (imageInfo.IsLooseLess) if (imageInfo.IsLossLess)
{ {
ReadSimpleLossless(pixels, image.Width, image.Height); ReadSimpleLossless(pixels, image.Width, image.Height);
} }
@ -160,7 +160,7 @@ namespace SixLabors.ImageSharp.Formats.WebP
{ {
Width = width, Width = width,
Height = height, Height = height,
IsLooseLess = isLossLess, IsLossLess = isLossLess,
Version = version, Version = version,
DataSize = dataSize DataSize = dataSize
}; };

4
src/ImageSharp/Formats/WebP/WebPImageInfo.cs

@ -16,9 +16,9 @@ namespace SixLabors.ImageSharp.Formats.WebP
public int Height { get; set; } public int Height { get; set; }
/// <summary> /// <summary>
/// Gets or sets whether this image uses a looseless compression. /// Gets or sets whether this image uses a lossless compression.
/// </summary> /// </summary>
public bool IsLooseLess { get; set; } public bool IsLossLess { get; set; }
public int Version { get; set; } public int Version { get; set; }

Loading…
Cancel
Save