Skip to content

Installation

pixopt requires Python 3.9 or newer.

pip install pixopt

This installs the core package with Pillow, Typer, Rich, and piexif.

With HEIC/HEIF support

If you need to process iPhone photos (HEIC/HEIF), install the optional dependency:

pip install pixopt pillow-heif

Or install the extra directly:

pip install pillow-heif

Note

pillow-heif may require additional system libraries on Linux. See the pillow-heif documentation for platform-specific instructions.

System dependencies

macOS

No extra system dependencies are required. Homebrew users may optionally install:

brew install libheif  # For HEIC/HEIF support

Linux (Debian/Ubuntu)

sudo apt-get install libheif-examples  # Optional, for HEIC/HEIF

Windows

No extra system dependencies are required. HEIC/HEIF support works out of the box via pillow-heif wheels.

From source

For development or bleeding-edge features:

git clone https://github.com/MathiasPaulenko/pixopt.git
cd pixopt
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e ".[dev]"

Verify installation

pixopt --help

You should see the CLI help output with all available commands.

Troubleshooting

ModuleNotFoundError: No module named 'pixopt'

Make sure you are in the correct virtual environment and that the package was installed successfully:

pip list | grep pixopt

HEIC/HEIF images fail to open

Install pillow-heif and ensure your Pillow version is 10.0.0 or newer:

pip install --upgrade Pillow pillow-heif

Permission errors on Linux

If you see permission errors when installing, use --user or a virtual environment:

pip install --user pixopt