Skip to content

Commit fa7d712

Browse files
Merge pull request #2688 from SixLabors/js/backport-2681
Backport 2681
2 parents e74a55f + 36b3533 commit fa7d712

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
<!-- Compilation properties. -->
2020
<PropertyGroup Condition="'$(Configuration)' == 'Release'">
21-
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
21+
<!--<TreatWarningsAsErrors>true</TreatWarningsAsErrors>-->
2222
</PropertyGroup>
2323

2424
<ItemGroup>

src/ImageSharp/Formats/Png/PngDecoderCore.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ private void ReadGammaChunk(PngMetadata pngMetadata, ReadOnlySpan<byte> data)
464464
private void InitializeImage<TPixel>(ImageMetadata metadata, out Image<TPixel> image)
465465
where TPixel : unmanaged, IPixel<TPixel>
466466
{
467-
image = Image.CreateUninitialized<TPixel>(
467+
image = new Image<TPixel>(
468468
this.Configuration,
469469
this.header.Width,
470470
this.header.Height,

0 commit comments

Comments
 (0)