Skip to main content

iiq2img

Fast converter for Phase One iXM-GS120 (120 MP) IIQ raw files. Outputs JPEG, PNG, or TIFF with full EXIF/GPS/XMP metadata and optional georeferencing.

Quick start

# Install from PyPI
pip install iiq2img

# Or install the latest dev version from git
uv pip install git+https://github.com/DPIRD-DMA/iiq2img.git

# Or clone and install locally
git clone https://github.com/DPIRD-DMA/iiq2img.git && cd iiq2img
uv sync

# Convert (uses fast pipeline by default)
iiq2img photo.IIQ                     # single file
iiq2img batch ./raw ./out             # batch directory
iiq2img photo.IIQ --libraw            # use LibRaw PPG instead

Pipelines

Pipeline End-to-end Speedup Quality
default (fast) ~1.0 s 3.6x Mean diff ~7/255 vs reference
--libraw (LibRaw PPG) ~3.3 s baseline Reference

The fast pipeline uses cv2 edge-aware demosaic + numba parallel LUTs with BT.709 gamma, matched to LibRaw's output. See FINDINGS.md for how.

Python API

from iiq2img import convert_iiq, read_iiq, batch_convert

# Single file (fast pipeline is the default)
out_path = convert_iiq("photo.IIQ", "output.jpg")

# Read as NumPy array (no file written)
rgb = read_iiq("photo.IIQ")

# Batch (parallel)
results = batch_convert("./raw", "./out", workers=8)

# Georeferenced output (requires `pip install iiq2img[geo]`)
# TIFF: CRS embedded in the GeoTIFF itself.
# JPEG/PNG: sidecars written next to the image (.jgw/.pgw + .prj + .aux.xml)
# so QGIS/ArcGIS recognise the projection.
convert_iiq("photo.IIQ", "output.tif", output_format="tiff", georef=True)
convert_iiq("photo.IIQ", "output.jpg", georef=True)

# Lossless GeoTIFF (LZW or DEFLATE) instead of default lossy JPEG-in-TIFF
convert_iiq("photo.IIQ", "output.tif", output_format="tiff",
            georef=True, geotiff_compress="lzw")
Option Default Description
thumbnail False Extract embedded JPEG thumbnail instead of converting
output_format "jpg" Output format: jpg, png, or tiff
compress_quality 90 JPEG/PNG compression quality (1-100)
max_dimension None Downscale longest edge to this size
rotate 0 Rotate output: 0, 90, 180, 270
georef False World file + .prj + .aux.xml sidecars for JPEG/PNG, embedded CRS for TIFF (requires [geo] extra)
extract_meta True Copy EXIF/GPS/XMP metadata to output
pipeline "fast" Demosaic pipeline: fast or libraw
geotiff_compress "jpeg" GeoTIFF compression: jpeg (lossy, smallest), lzw/deflate (lossless), none

CLI

# Single file (outputs photo.jpg next to the original)
iiq2img photo.IIQ
iiq2img photo.IIQ --libraw            # use LibRaw PPG instead of fast

# Batch convert a directory (parallel)
iiq2img batch ./raw ./out                           # defaults: jpg, q=90, fast
iiq2img batch ./raw ./out --format tiff --workers 8 # tiff, q=90, 8 workers
iiq2img batch ./raw ./out --format jpg --quality 75 --workers 4 --libraw
iiq2img batch ./raw ./out --georef                  # write georef sidecars for every output
iiq2img batch ./raw ./out --rotate 180 --no-meta    # 180° flip, skip EXIF copy
iiq2img batch ./raw ./out --format tiff --georef --geotiff-compress lzw  # lossless GeoTIFFs

# Benchmark all pipelines on a sample file
iiq2img benchmark photo.IIQ

Changelog

See CHANGELOG.md for version history.

Contributing

git clone https://github.com/DPIRD-DMA/iiq2img.git && cd iiq2img
uv sync --dev
pre-commit install

Pre-commit hooks run ruff (lint + format) and pytest on every commit. To run them manually:

uv run ruff check .                  # lint
uv run ruff format .                 # format
uv run pytest                        # tests
uv run iiq2img benchmark photo.IIQ   # timing comparison

Metadata

Release files for iiq2img 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iiq2img 0.7.0
File Size Uploaded Provenance Actions
iiq2img-0.7.0.tar.gz 2.0 MB With provenance Details for iiq2img-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iiq2img 0.7.0
File Interpreter ABI Platform Actions
iiq2img-0.7.0-py3-none-any.whl Python 3 none any Details for iiq2img-0.7.0-py3-none-any.whl

Total release size: 2.1 MB

Release files / iiq2img-0.7.0.tar.gz

Download URL iiq2img-0.7.0.tar.gz
Size 2.0 MB
Tags Source
SHA-256 checksum
How to use checksums
62b0e7e3d41019c450a3410295ea860e70831275ff577e48d14fcdd665454502
BLAKE2b-256 checksum
How to use checksums
5564fd29f323d16957da290731b8e75bd972ef2b4c33176212ac0dfe2d7200d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.

Transparency log

Release files / iiq2img-0.7.0-py3-none-any.whl

Download URL iiq2img-0.7.0-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
21c5a7640f064fa4a658da15aab57ef0540d4f6bd4424fa77f4dd09c3e8d5bf1
BLAKE2b-256 checksum
How to use checksums
92ede3bb2ccf4fdecaf54b2d524bcddf979fd86f60f430c81244addd98e181db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.

Transparency log

Security for iiq2img 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for iiq2img-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page