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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
2 additions and
2 deletions
-
src/Directory.Build.props
-
src/ImageSharp/Formats/Png/PngDecoderCore.cs
|
|
|
@ -18,7 +18,7 @@ |
|
|
|
|
|
|
|
<!-- Compilation properties. --> |
|
|
|
<PropertyGroup Condition="'$(Configuration)' == 'Release'"> |
|
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
|
|
|
<!--<TreatWarningsAsErrors>true</TreatWarningsAsErrors>--> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
|
|
|
|
@ -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, |
|
|
|
|