
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
rgbconv - Fast RGB image pixel format conversion module written in C
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.
import rgbconv
img = b'01234567890abcdef'
rgbconv.bgra2rgba(img)
print(img)
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.
pip3 install rgbconv
The latest version of rgbconv module is available at PyPI (https://pypi.org/project/rgbconv) .
Hiroyuki Ohsaki <ohsaki[atmark]lsnl.jp>
FAQs
fast RGB image pixel format conversion module written in C
We found that rgbconv demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.