Installation
Overview
This page walks through adding Aspose.Imaging FOSS for Python to a project and confirming it resolves correctly. It targets Python 3.10 or later and has zero dependencies beyond the Python standard library.
Prerequisites
| Requirement | Detail |
|---|---|
| Runtime | Python 3.10 or later |
| License | MIT — no key required |
| Runtime dependencies | None |
Add the package
git clone https://github.com/aspose-imaging-foss/Aspose.Imaging-FOSS-for-Python.git
cd Aspose.Imaging-FOSS-for-Python
pip install -e .Importing the package
After installation, import the functions and types you need from
aspose_imaging_foss:
from aspose_imaging_foss import ImageFormat, ImageInfo, detect_format, probeThis top-level import exposes the library’s public surface: detect_format(),
probe(), probe_async(), ImageFormat, and ImageInfo.
Verifying the installation
Probe a sample file and confirm the package resolves correctly:
from aspose_imaging_foss import probe
info = probe("photo.jpg")
print(f"{info.format}: {info.width}x{info.height}, {info.bit_depth}-bit")If the script runs and prints a format, dimensions, and bit depth, the package is installed correctly.
Next Steps
- Quick Start — detect a format and read header metadata in a few lines
- License — MIT license terms
- Developer Guide — feature-level documentation