rawpy icon indicating copy to clipboard operation
rawpy copied to clipboard

“Image too big” thrown when file does not exist

Open Wrzlprmft opened this issue 1 year ago • 2 comments

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).

Wrzlprmft avatar Nov 16 '23 15:11 Wrzlprmft

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

letmaik avatar Nov 16 '23 21:11 letmaik

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.

Wrzlprmft avatar Nov 16 '23 22:11 Wrzlprmft