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

“Image too big” thrown when file does not exist #210

Open
Wrzlprmft opened this issue Nov 16, 2023 · 2 comments
Open

“Image too big” thrown when file does not exist #210

Wrzlprmft opened this issue Nov 16, 2023 · 2 comments

Comments

@Wrzlprmft
Copy link

When I enter a wrong filename, I do not get the expected FileNotFoundError, but: “Image too big for processing”:

import rawpy
from pytest import raises

filename = "wrzlprmft.CR2"

with raises(FileNotFoundError):
	open(filename,"rb")

with raises(FileNotFoundError):
	rawpy.imread("non_existing_file.CR2")

This happens to me with RawPy version 0.18.1 and rawpy.libraw_version being (0,21,1).

@letmaik
Copy link
Owner

letmaik commented Nov 16, 2023

The error is coming directly from libraw, looks like a bug. Can you report it over there?

@Wrzlprmft
Copy link
Author

Generally yes, but I would have either only be able to relaying everything to this issue here without being able or I would have to spend some time on familiarising myself with LibRaw itself.

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

2 participants