Skip to main content

Pure-managed JPEG (ITU-T T.81 / ISO 10918) codec for .NET. Decoder: baseline sequential + progressive DCT, restart intervals, 4:4:4 / 4:2:2 / 4:2:0 / arbitrary chroma subsampling, grayscale, YCbCr, RGB-marked, and Adobe CMYK / YCCK (APP14) streams, plus scaled decode at 1/2, 1/4, 1/8 resolution via reduced inverse DCT โ€” a 33-megapixel source can decode straight to a thumbnail-sized raster without the full-resolution intermediate ever existing. Encoder (3.6): baseline sequential DCT, 4:4:4 / 4:2:0, quality 1..100 โ€” a faithful port of the stb_image_write JPEG writer, byte-for-byte identical to that reference. Decode-to-caller-buffer API with ArrayPool-backed internals; JpegSegmentScanner surfaces APPn metadata segments. Full-scale decode is byte-exact against the StbImageSharp (stb_image) reference decoder. AOT-compatible.

Total Downloads
13.2K
13,188
Published
Sep 11, 2026
Latest stable version

Install

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

Frameworks

net10.0

Dependencies

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.