PyEXR
Python binding for tinyexr, an OpenEXR image loader/saver library
Install / Use
/learn @ialhashim/PyEXRREADME
PyEXR
Loading OpenEXR (.exr) images using Python.
It is basically a Python binding for tinyexr. Use CMake to build the module (uses pybind11). Installation script is not there, you can simply copy the resulting python module files. Supports loading functionality, saving can be easily added (pull requests welcome!).
Usage
from PyEXR import PyEXRImage
# Load an EXR image (tinyexr backend)
img = PyEXRImage('2by2.exr')
# Print basic details
print(img)
# Pixel values access
r = img.getPixel(x,y,0)
g = img.getPixel(x,y,1)
b = img.getPixel(x,y,2)
a = img.getPixel(x,y,3)
# Numpy:
m = np.array(img, copy = False)
# or
rgb = np.reshape(np.array(rgb_img, copy = False), (rgb_img.height, rgb_img.width, 4))
# a matrix of (height x width x channels)
# Display
from PIL import Image
Image.fromarray(np.clip(np.uint8(rgb*255.0), 0, 255)).show()
Related Skills
healthcheck
349.9kHost security hardening and risk-tolerance configuration for OpenClaw deployments
imsg
349.9kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
349.9kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
