Browse Source

Merge pull request #2688 from SixLabors/js/backport-2681

Backport 2681
pull/2717/head v2.1.7
James Jackson-South 2 years ago
committed by GitHub
parent
commit
fa7d712702
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/Directory.Build.props
  2. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs

2
src/Directory.Build.props

@ -18,7 +18,7 @@
<!-- Compilation properties. -->
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!--<TreatWarningsAsErrors>true</TreatWarningsAsErrors>-->
</PropertyGroup>
<ItemGroup>

2
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -464,7 +464,7 @@ namespace SixLabors.ImageSharp.Formats.Png
private void InitializeImage<TPixel>(ImageMetadata metadata, out Image<TPixel> image)
where TPixel : unmanaged, IPixel<TPixel>
{
image = Image.CreateUninitialized<TPixel>(
image = new Image<TPixel>(
this.Configuration,
this.header.Width,
this.header.Height,

Loading…
Cancel
Save