Skip to main content

ouestcharlie-imageproc

Image processing coprocessor for OuEstCharlie — a Rust CLI (image-proc) bundled with a Python subprocess wrapper.

Handles all pixel-level operations: decoding, EXIF orientation, resize, fit, and encoding to AVIF or JPEG. Used by ouestcharlie-py-toolkit for thumbnail grid assembly and on-demand preview generation.

What's in this package

  • image-proc — Rust CLI that reads JSON requests from stdin and writes JSON responses to stdout (newline-delimited, persistent coprocessor model).
  • ouestcharlie_imageproc.image_proc — Python subprocess wrappers: OneTimeImageProc (fresh process per request) and PersistentImageProc (long-lived process with asyncio lock).

Supported formats

Format Notes
JPEG, PNG, WebP, TIFF Default, pure Rust, all platforms
RAW (CR2, NEF, ARW, DNG, RAF, ORF, RW2, PEF) Enable with IMAGE_PROC_FEATURE_RAW=1
HEIC/HEIF Enable with IMAGE_PROC_FEATURE_HEIC=1 — bundled into published wheels by default; requires libheif at build time only, none at runtime (its shared library is vendored into the wheel)

Building

Requires Rust stable, nasm, and (for HEIC) libheif:

# macOS
brew install nasm inih libheif

# Linux
sudo apt-get install nasm libheif-dev

# Windows
choco install nasm
# libheif via vcpkg — see .github/workflows/_build.yml for the bootstrap steps
# Install as editable (development)
pip install -e . --no-build-isolation

# Build release wheel
IMAGE_PROC_FEATURE_RAW=1 IMAGE_PROC_FEATURE_HEIC=1 hatch build --target wheel

Published wheels set both IMAGE_PROC_FEATURE_RAW and IMAGE_PROC_FEATURE_HEIC via CI — a bare pip install -e . or hatch build without the env vars excludes both, same as cargo build without --features.

Running tests

# Unit tests (no binary required)
.venv/bin/python -m pytest tests/ -v

# Integration tests (require compiled binary)
.venv/bin/python -m pytest tests_integration/ -v

# Rust tests
cd image-proc && cargo test

Design

See imageproc_LLD.md for the protocol specification, command reference, and build details.

Release files for ouestcharlie-imageproc 2.3.1

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

Source distribution (sdist)

Source distribution for ouestcharlie-imageproc 2.3.1
File Size Uploaded
ouestcharlie_imageproc-2.3.1.tar.gz 2.7 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for ouestcharlie-imageproc 2.3.1
File Interpreter ABI Platform
ouestcharlie_imageproc-2.3.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
ouestcharlie_imageproc-2.3.1-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
ouestcharlie_imageproc-2.3.1-cp313-cp313-macosx_26_0_arm64.whl CPython 3.13 CPython 3.13 macOS 26.0+ ARM64 Details

Total release size: 21.0 MB

Release files / ouestcharlie_imageproc-2.3.1.tar.gz

Download URL ouestcharlie_imageproc-2.3.1.tar.gz
Size 2.7 MB
Tags Source
SHA-256 checksum
How to use checksums
a434d2b4ea371486c09232c97e3ce2a2d9a8add9af7a69b1c7f0b5e508a4a39c
BLAKE2b-256 checksum
How to use checksums
6462aecc2f408496c5b93d52d5c9bf7a23411d4834ddb713104e1d6c65f77f99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 8, 2026.

Transparency log

Release files / ouestcharlie_imageproc-2.3.1-cp313-cp313-win_amd64.whl

Download URL ouestcharlie_imageproc-2.3.1-cp313-cp313-win_amd64.whl
Size 4.6 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
48b679dfb7b83066f4a2b9e99a5f20e5c86e29b9c16b54cbb795c43041d754fd
BLAKE2b-256 checksum
How to use checksums
5ca87f9a3c6585c64f1d1b637aa03f6b7f95776496b59f79a61af2c439dbc7ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 8, 2026.

Transparency log

Release files / ouestcharlie_imageproc-2.3.1-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL ouestcharlie_imageproc-2.3.1-cp313-cp313-manylinux_2_34_x86_64.whl
Size 7.2 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
b195ea24c91a09f22d243626967d225d7a45fa0148ebe28ab36952b9564a0765
BLAKE2b-256 checksum
How to use checksums
368d00d173e90deef16aaca425550ee1d4d5543da557b42e660568c9c6045242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 8, 2026.

Transparency log

Release files / ouestcharlie_imageproc-2.3.1-cp313-cp313-macosx_26_0_arm64.whl

Download URL ouestcharlie_imageproc-2.3.1-cp313-cp313-macosx_26_0_arm64.whl
Size 6.4 MB
Tags CPython 3.13 macOS 26.0+ ARM64
SHA-256 checksum
How to use checksums
6673f3e58bf27e38eede5921b2ab4d782749052bcfc0fc134004dacba2442447
BLAKE2b-256 checksum
How to use checksums
9cab1a930134e54d84c3cbc8c7bb095dba679b6851a1f14ce916b0815fa89d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 8, 2026.

Transparency log

Release history Release notifications | RSS feed

2.3.2

4 release files

This release

2.3.1 This release

4 release files

2.3.0

4 release files

2.2.0

4 release files

2.1.0

4 release files

2.0.0

5 release files

1.0.0

5 release files

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