Click here to Skip to main content
15,879,490 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have some compressed EXR scan-line files that are unable to be read using minexr, shows error:
Python
assert self.compr == 0x00, Compression not supported.
Additionally, I want to read them one scanline at a time, so as to not overload memory. On the internet, I can not find out how to do this. Any ideas? Here's my code so far:

Additionally, I want to read them one scanline at a time, so as to not overload memory. On the internet, I can not find out how to do this. Any ideas?

What I have tried:

Here's my code so far:

<pre lang="Python">import minexr
import os

ETC_PATH = Path(__file__).parent / 'etc'

os.chdir(r"C:\Users\DELL\Documents\Quixel\Trial task for hire evaluation\test1")

def main():
    with open('u1_v1.exr', 'rb') as fp:
        reader = minexr.load(fp)
Posted
Comments
Richard MacCutchan 29-Sep-22 3:38am    
You first need to correct the issue of the data being compressed. To read one scanline at a time you need to know how many bytes it contains and read just that many for each line.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900