Hi all,

I've just had a request to add preview images in the EXR's I generate via
OIIO, and I don't think there's any facility to do so at the moment.

Before I head off down the path of implementing this feature, I just wanted
to sound off my current ideas and see what people think.

The way I see it, we can either implement this as:

1. Expose the ImfPreviewImageAttribute as a simple char array containing
the jpg image in the reader, and support writing this back out in the
writer, with no additional help.

2. Automatically generate the preview image in the EXR writer, perhaps
allowing the resolution to be specified somewhere in the ImageSpec.

3. A combination approach, where we expose a function to generate the
preview image in the desired resolution, but the user still has to
explicitly add it to the extra_attribs object.

I'm leaning towards 3, but wouldn't know where we would like the
generatePreviewImage functionality to live.

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

Reply via email to