OpenImageIO icon indicating copy to clipboard operation
OpenImageIO copied to clipboard

[FEATURE REQUEST] RAW: Ability to read the embedded thumbnails of raw files.

Open JenusL opened this issue 1 year ago • 3 comments
trafficstars

Is your feature request related to a problem? Please describe. Most RAW-files have embedded thumbnails in them. It's currently not possible to access them with OIIO.

Describe the solution you'd like It would be super useful to be able to access them.

Describe alternatives you've considered Using LibRaw directly, one can access them with the command line tool simple_dcraw.

Additional context In LibRaw, you can get the highest resolution thumbnail with the command line tool simple_dcraw -v -e raw_file.cr2 or you can get all the thumbnails with simple_dcraw -v -E raw_file.cr2 So look at simple_dcraw for inspiration.

JenusL avatar Jan 11 '24 16:01 JenusL

Subscribing to this...

I have been using rawpy python module (Cython bindings for LibRaw) which is great, but would like to stick with one API, one set of dependencies for each library. (LibRaw version for OIIO vs rawpy).

stevencaron avatar May 24 '24 22:05 stevencaron

@JenusL Looks like it's just waiting on one of us to do it :)

https://github.com/AcademySoftwareFoundation/OpenImageIO/blob/ae8aa8f974dbfd3e0bf2d02e0253886582dc952f/src/raw.imageio/rawinput.cpp#L903

stevencaron avatar May 24 '24 23:05 stevencaron