Skip to content
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

Error - Handling Non Tiff Files, EXR Used For Pre Linearised Footage #73

Open
davisadam10 opened this issue Feb 19, 2024 · 1 comment
Open

Comments

@davisadam10
Copy link
Collaborator

As discussed, the tool errors when handling any image which is not a tif, including a tiff.

There are use cases where being able to provide other formats of data would be preferable such as where the footage has already been linearised we would want to use an exr for instance.

Adding OpenImageIO to the docker container would allow for a wider variety of file formats to be handled.

@davisadam10 davisadam10 changed the title Error Handling Non Tiff Files, EXR Used For Pre Linearised Footage Error - Handling Non Tiff Files, EXR Used For Pre Linearised Footage Feb 19, 2024
@davisadam10
Copy link
Collaborator Author

File "/Users/adamdavis/dev/workspace/git/idt-calculator/aces/idt/prosumer_camera.py", line 753, in sample image = _reformat_image(read_image(paths[0])) ^^^^^^^^^^^^^^^^^^^^ File "/Users/adamdavis/dev/workspace/git/idt-calculator/.venv/lib/python3.12/site-packages/colour/io/image.py", line 444, in read_image return function(path, bit_depth, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/adamdavis/dev/workspace/git/idt-calculator/.venv/lib/python3.12/site-packages/colour/io/image.py", line 351, in read_image_Imageio image = np.squeeze(imread(path, **kwargs)) ^^^^^^^^^^^^^^^^^^^^^^ File "/Users/adamdavis/dev/workspace/git/idt-calculator/.venv/lib/python3.12/site-packages/imageio/__init__.py", line 97, in imread return imread_v2(uri, format=format, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/adamdavis/dev/workspace/git/idt-calculator/.venv/lib/python3.12/site-packages/imageio/v2.py", line 360, in imread result = file.read(index=0, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/adamdavis/dev/workspace/git/idt-calculator/.venv/lib/python3.12/site-packages/imageio/plugins/spe.py", line 538, in read raise IndexError( ^ IndexError: Index 0 exceeds the number of frames stored in this file (-2147434821).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant