Skip to main content

qimage2ndarray is a small python extension for quickly converting between QImages and numpy.ndarrays (in both directions). These are very common tasks when programming e.g. scientific visualizations in Python using PyQt4 as the GUI library.

  • Supports conversion of scalar and RGB data, with arbitrary dtypes and memory layout, with and without alpha channels, into QImages (e.g. for display or saving using Qt).

  • qimage2ndarray makes it possible to create ndarrays that are views into a given QImage’s memory.

    This allows for very efficient data handling and makes it possible to modify Qt image data in-place (e.g. for brightness/gamma or alpha mask modifications).

  • Masked arrays are also supported and are converted into QImages with transparent pixels.

  • Supports recarrays (and comes with an appropriate dtype) for convenient access to RGB(A) channels.

  • Supports value scaling / normalization to 0..255 for convenient display of arbitrary NumPy arrays.

  • qimage2ndarray is stable and unit-tested.

Release files for qimage2ndarray 1.10.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 qimage2ndarray 1.10.0
File Size Uploaded
qimage2ndarray-1.10.0.tar.gz 200.4 kB Details

Built distribution (wheel)

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

Total release size: 213.0 kB

Release files / qimage2ndarray-1.10.0.tar.gz

Download URL qimage2ndarray-1.10.0.tar.gz
Size 200.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3725102446dc8a696b2ec775b1d2af43b13af6a7f9ebee8a37115bb9543a2c58
BLAKE2b-256 checksum
How to use checksums
c5c59c5630bcda3e2dd8445dd5c663e938451967c84d7f8707816ca9f00824db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / qimage2ndarray-1.10.0-py3-none-any.whl

Download URL qimage2ndarray-1.10.0-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4c1c2a4ef2f72a7943392ee76305da87831274b9a10f00ccf624a54cb335ec6d
BLAKE2b-256 checksum
How to use checksums
9d79d3ce0ec91c3c761e04d0210d5544073ba3d38a4d6538e2ba58b45e33275c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 release files

1.9.0

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8

1 release file

1.7

1 release file

1.6

1 release file

1.5.1

1 release file

1.5

1 release file

1.4

1 release file

1.3.1

1.3

1 release file

1.2

1 release file

1.0

3 release files

0.2

3 release files

0.1

2 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