NAME
rgbconv - Fast RGB image pixel format conversion module written in C
DESCRIPTION
This manual page documents rgbconv module, a Python module for rapidly converting image pixel format from BGRA (Blue, Green, Red, and Alpha) to RGBA (Red, Green, Blue, and Alpha).
Different aplications/modules use different pixel formats for represenging pixels in images and photos. One of the most popular formats are 24-bit RGB (8 bits each for red, green, and blue) and 32-bit RGBA (8 bits each for red, green, blue, alpha). Other formats include 32-bit BGRA (8 bits for blue, green, red, and alpha) and 32-bit RGBX (8bits for red, gree, blue, and unused).
rgbconv provides bgra2rgba, which rapidly converts from the BGRA format to the RGBA format. rgbconv is implemented in C language for achieving the almost optimal performance.
EXAMPLES
import rgbconv
img = b'01234567890abcdef'
rgbconv.bgra2rgba(img)
print(img)
WARNING
rgbconv directly modifies a byte-like object in Python for the maximal performance even if the object is immutable, which may cause problems. Use rgbconv module with caution.
INSTALLATION
pip3 install rgbconv
AVAILABILITY
The latest version of rgbconv module is available at PyPI (https://pypi.org/project/rgbconv) .
SEE ALSO
AUTHOR
Hiroyuki Ohsaki <code[atmark]lsnl.jp>
Metadata
Release files for rgbconv 1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rgbconv-1.2.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rgbconv-1.2-cp313-cp313-manylinux1_x86_64.manylinux_2_5_x86_64.whl | CPython 3.13 | CPython 3.13 | Linux glibc 2.5+ x86-64 | Details |
Total release size: 12.6 kB
Release files / rgbconv-1.2.tar.gz
| Download URL | rgbconv-1.2.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ac5b446c6c23c111a0cced68ffff418991a13e3dd5e7e1e14e60c9985c9fb8f
|
|
BLAKE2b-256 checksum How to use checksums |
5feeedd6128d2ae165cac6c8dc2bb2bc16b3ae06d3c91806037bc60157629213
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / rgbconv-1.2-cp313-cp313-manylinux1_x86_64.manylinux_2_5_x86_64.whl
| Download URL | rgbconv-1.2-cp313-cp313-manylinux1_x86_64.manylinux_2_5_x86_64.whl |
|---|---|
| Size | 9.7 kB |
| Tags | CPython 3.13 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
5ae2ebde3758c95b6244478167f89d3b79d874e557fc3abde0a031973ece35d6
|
|
BLAKE2b-256 checksum How to use checksums |
1314eca78124244b866b90a1d6cac26c10e51e5f8aff5128d3cfef533befbca3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for rgbconv 1.2
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.