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

RequirementDetail
RuntimePython 3.10 or later
LicenseMIT — no key required
Runtime dependenciesNone

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, probe

This 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

See Also