Closed giacomomarchioro closed 7 months ago
rawpy is using libraw's unpack_thumb
function which extracts the largest thumbnail available in the file (and that could be a full-size JPEG). See https://www.libraw.org/docs/API-CXX.html#unpack_thumb. It's likely your file has multiple thumbnails, but rawpy currently doesn't support reading the other ones. Do you have a use case for extracting the smaller thumbnails or does the large one work as well for you?
Hi all thanks for this wonderful package!
When I try to read the thumbnail of a
.nef
file I get a byte object containing the whole image:This can be opened using:
Using
imageio
I can get the thumbnail but not the image: