Hi,

I am loading RAW images (Canon CR2 currently) into an ImageBuf like so:

ImageSpec cfg;
cfg.attribute("raw:auto_bright", 1);
cfg.attribute("raw:Exposure", 3.0);
shared_ptr<ImageBuf> inputImage (new ImageBuf(path, 0, 0, nullptr, &cfg));
...

Is there a way to extract the ThumbnailImage/PreviewImage, f.e. via
LibRaw::unpack_thumb before loading the image?

In rawinput.cpp I did not find anything related, except for this comment on
line 661:

// FIXME -- thumbnail possibly in m_processor->imgdata.thumbnail

Thanks in advance!

Till
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to