Fast IIQ converter for Phase One iXM-GS120 (120MP) raw images
Project description
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]`)
out_path = convert_iiq("photo.IIQ", "output.tif", output_format="tiff", georef=True)
| 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 |
Write georeferenced GeoTIFF (requires [geo] extra) |
extract_meta |
True |
Copy EXIF/GPS/XMP metadata to output |
pipeline |
"fast" |
Demosaic pipeline: fast or libraw |
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
# 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iiq2img-0.5.0.tar.gz.
File metadata
- Download URL: iiq2img-0.5.0.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e4679e8d1be2fe56a659948e9eba8c2f5760e9b5effe57bec539ca9c601da9f
|
|
| MD5 |
744483ba20c808767d04b1fa29899ca3
|
|
| BLAKE2b-256 |
26ffc5fb7514279518c9b65384ce50b90b731868d49e5903e1a8b92842de7b64
|
Provenance
The following attestation bundles were made for iiq2img-0.5.0.tar.gz:
Publisher:
publish.yml on DPIRD-DMA/iiq2img
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iiq2img-0.5.0.tar.gz -
Subject digest:
7e4679e8d1be2fe56a659948e9eba8c2f5760e9b5effe57bec539ca9c601da9f - Sigstore transparency entry: 1247127287
- Sigstore integration time:
-
Permalink:
DPIRD-DMA/iiq2img@004e5ce7d5c938d10e353a439084e1a65039edb6 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/DPIRD-DMA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@004e5ce7d5c938d10e353a439084e1a65039edb6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file iiq2img-0.5.0-py3-none-any.whl.
File metadata
- Download URL: iiq2img-0.5.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16c82bcd904b9d9a99606c36b69584a92acceca4f39a3ae0dcce80d57655a5a4
|
|
| MD5 |
c0e9d3fae434cbb4ea70dd48a2d82e98
|
|
| BLAKE2b-256 |
4893cf5219e5dcee48b2476ec63db682dd03b71d268e3f2b69d58b40cef1782a
|
Provenance
The following attestation bundles were made for iiq2img-0.5.0-py3-none-any.whl:
Publisher:
publish.yml on DPIRD-DMA/iiq2img
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iiq2img-0.5.0-py3-none-any.whl -
Subject digest:
16c82bcd904b9d9a99606c36b69584a92acceca4f39a3ae0dcce80d57655a5a4 - Sigstore transparency entry: 1247127297
- Sigstore integration time:
-
Permalink:
DPIRD-DMA/iiq2img@004e5ce7d5c938d10e353a439084e1a65039edb6 -
Branch / Tag:
refs/tags/v0.5.0 - Owner: https://github.com/DPIRD-DMA
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@004e5ce7d5c938d10e353a439084e1a65039edb6 -
Trigger Event:
push
-
Statement type: