![]() |
VOOZH | about |
dotnet add package SharpAstro.Exif --version 3.3.391
NuGet\Install-Package SharpAstro.Exif -Version 3.3.391
<PackageReference Include="SharpAstro.Exif" Version="3.3.391" />
<PackageVersion Include="SharpAstro.Exif" Version="3.3.391" />Directory.Packages.props
<PackageReference Include="SharpAstro.Exif" />Project file
paket add SharpAstro.Exif --version 3.3.391
#r "nuget: SharpAstro.Exif, 3.3.391"
#:package SharpAstro.Exif@3.3.391
#addin nuget:?package=SharpAstro.Exif&version=3.3.391Install as a Cake Addin
#tool nuget:?package=SharpAstro.Exif&version=3.3.391Install as a Cake Tool
SharpAstro fork of StbSharp/StbImageSharp — a pure-managed C# port of Sean Barrett's stb_image.h. Decodes JPG (baseline), PNG, BMP, TGA, PSD, GIF, and HDR without any native binaries.
This repository also hosts a family of sibling pure-managed codec packages (SharpAstro.Png, SharpAstro.Tiff, SharpAstro.Jxr, SharpAstro.Color.Icc, SharpAstro.Exif, SharpAstro.Jpeg). See for the full matrix of what each package decodes / encodes and how to pick the right one.
Why a fork? The SharpAstro family of libraries (DIR.Lib, Fonts.Lib, SdlVulkan.Renderer, …) targets .NET 10, ships AOT-compatible NuGet packages, and is wired into a CI/CD pipeline. This fork brings StbImageSharp into the same convention: net10.0, <IsAotCompatible>true</IsAotCompatible>, centrally-managed package versions, SourceLink debugging, and automated publishing.
The C# source is unchanged from upstream — it's still the Hebron-transpiled stb_image port. Only project scaffolding (csproj, CI, packaging metadata) has been modernised.
dotnet add package SharpAstro.StbImage
Namespace is still StbImageSharp to keep call sites identical when migrating off the upstream package.
using StbImageSharp;
using var stream = File.OpenRead(path);
var image = ImageResult.FromStream(stream, ColorComponents.RedGreenBlueAlpha);
// image.Width, image.Height, image.Data (byte[])
Other entry points: ImageResult.FromMemory(byte[]), ImageInfo.FromStream (header peek), ImageResultFloat.FromStream (HDR), ImageResult.AnimatedGifFramesFromStream.
See the upstream README for richer examples (MonoGame Texture2D, WinForms Bitmap, etc.).
git clone https://github.com/SharpAstro/StbImageSharp
cd StbImageSharp
dotnet build StbImageSharp.JustTests.sln -c Release
dotnet test StbImageSharp.JustTests.sln -c Release
Requires the .NET 10 SDK.
(public domain). Same terms as the upstream port and the original stb library.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 2 NuGet packages that depend on SharpAstro.Exif:
| Package | Downloads |
|---|---|
|
TianWen.Lib
Package Description |
|
|
FC.SDK.Raw
Canon CR2 / CR3 raw-file decoder — pure managed C#, no external libraw / dcraw / EDSDK. Sibling to FC.SDK (Canon PTP device communication): one package for talking to the camera, one for decoding the files it writes. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.3.391 | 119 | 6/10/2026 |
| 3.3.361 | 32 | 6/1/2026 |
| 3.3.341 | 31 | 5/31/2026 |
| 3.2.311 | 91 | 5/30/2026 |
| 3.2.291 | 31 | 5/30/2026 |
| 3.2.271 | 40 | 5/30/2026 |
| 3.2.251 | 28 | 5/30/2026 |
| 3.1.231 | 42 | 5/30/2026 |
| 3.0.221 | 25 | 5/30/2026 |
| 3.0.211 | 28 | 5/30/2026 |
| 3.0.191 | 33 | 5/24/2026 |
| 3.0.181 | 34 | 5/24/2026 |
| 3.0.171 | 38 | 5/24/2026 |
| 3.0.161 | 26 | 5/24/2026 |
| 3.0.151 | 31 | 5/24/2026 |
| 3.0.141 | 32 | 5/24/2026 |
| 3.0.131 | 31 | 5/24/2026 |
| 3.0.121 | 24 | 5/24/2026 |
| 3.0.111 | 30 | 5/24/2026 |
| 3.0.101 | 28 | 5/24/2026 |