-
Notifications
You must be signed in to change notification settings - Fork 616
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenEXR.OutputFile Fails to Write to BytesIO Buffer #1758
Comments
You're right, the current python bindings only support file I/O, even though the underlying library supports streams. I'm in the process of entirely rewriting the bindings (#1756), I can add support for byte streams. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
I encountered an issue when trying to use
OpenEXR.OutputFile
to write to aBytesIO
buffer. The operation fails with the following error:OSError: Cannot open image file "". file write failed
. It appears thatOpenEXR.OutputFile
does not handle in-memory buffers as expected.Steps to Reproduce:
Expected Behavior:
OpenEXR.OutputFile
should support writing to aBytesIO
buffer without raising an error.I am not very C++ savvy but it seems that the C++ implementation and the python wrapper would handle a byte stream for image writing? Especially when reading from a byte stream is supported.
Appreciate any help. Thanks!
Environment:
The text was updated successfully, but these errors were encountered: