Skip to main content

Pure-managed PNG encoder + decoder for .NET. Writer: adaptive per-row filter selection (libpng "minimum sum of absolute values" heuristic), 8/16-bit RGBA/Gray. Reader: chunk parsing with CRC validation, color types 0/2/4/6 at 8/16-bit. Both sides handle iCCP / sRGB / gAMA / cHRM / eXIf metadata plus PNG-3 HDR signaling chunks cICP (Coding-Independent Code Points), mDCv (Mastering Display Color Volume), cLLI (Content Light Level Info) โ€” full HDR10 / HLG round-trip. Also exports PngPredictor as a reusable row-unfilter building block (TIFF Predictor=2 / PDF FlateDecode). AOT-compatible.

Total Downloads
25.2K
25,184
Published
Sep 11, 2026
Latest stable version

Install

.NET CLI
dotnet add package SharpAstro.Png --version 3.14.871+43ac2412bbc86a491c7bc41d48c6828f0b8af1f1
Package Manager Console
Install-Package SharpAstro.Png -Version 3.14.871+43ac2412bbc86a491c7bc41d48c6828f0b8af1f1
PackageReference
<PackageReference Include="SharpAstro.Png" Version="3.14.871+43ac2412bbc86a491c7bc41d48c6828f0b8af1f1" />

Frameworks

net10.0

Dependencies

[3.14.871, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.