Skip to content

Commit 3ea2574

Browse files
Update PngDecoderCore.cs
1 parent e74a55f commit 3ea2574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ImageSharp/Formats/Png/PngDecoderCore.cs

Lines changed: 1 addition & 1 deletion
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)