Aspose.Imaging FOSS for .NET — Frequently Asked Questions

Aspose.Imaging FOSS for .NET — Frequently Asked Questions

Licensing & Open Source

What is the licensing model for Aspose.Imaging FOSS for .NET?

Aspose.Imaging FOSS for .NET is released under the MIT License. It is free to use in commercial and non-commercial projects, with no registration, API key, or license file required.

Can I use it in commercial products?

Yes. The MIT License permits use, modification, and redistribution in commercial software without restriction, as long as the original copyright notice and license text are included in any copies or substantial portions of the software.

Installation & Requirements

How do I install Aspose.Imaging FOSS for .NET?

git clone https://github.com/aspose-imaging-foss/Aspose.Imaging-Foss-for-.NET.git
cd Aspose.Imaging-Foss-for-.NET
dotnet build

The library targets net8.0 and netstandard2.0 and has zero external runtime dependencies.

Format Support

Does Aspose.Imaging FOSS for .NET decode or render images?

No. The library’s scope is deliberately narrow: it detects an image’s format and reads header-level metadata (dimensions, bit depth, frame count) directly from the file header. It never decodes, renders, or manipulates pixel data. Decoding, editing, and format conversion are outside this library’s scope and require the commercial Aspose.Imaging SDK.

Which image formats can it detect?

PNG, JPEG, GIF, BMP, WebP, ICO, TIFF, PSD, EMF, WMF, and DICOM. An unrecognized header resolves to ImageFormat.Unknown rather than throwing an exception.

Does it support DICOM medical imaging files?

Yes, at the header level. ImageProbe parses DICOM headers across Implicit VR Little Endian and Explicit VR Little/Big Endian transfer syntaxes, extracting rows, columns, and bits allocated — no DICOM viewer or external dependency required.

API Usage

What is the main entry point for the API?

ImageProbe is the static entry point. ProbeFile(path), Probe(stream), and Probe(data) return a full ImageInfo result; DetectFormat(stream)/DetectFormat(data) return just the ImageFormat when dimensions aren’t needed.

What happens if I probe a corrupted or truncated file?

ImageProbe never throws on malformed or truncated input. It returns a partial ImageInfo with whatever fields it could determine — Format is set whenever the header’s format marker was recognized, even if the rest of the file is cut short.

Are Width, Height, BitDepth, and FrameCount always populated?

No. ImageInfo exposes these as nullable properties, populated only when the detected format’s header actually carries that value. Format is the one field guaranteed to be set once the header is recognized.

See Also