There's no built-in function to do this all in one step, but it's not hard to
do "by hand".
I think the general approach is:
* Make an ImageInput, open the file
* For each tile of the image:
* read_tile(), observe its return code (indicating error)
* If an error occurs, the file is incomplete, note which tile is missing
> On Jan 19, 2018, at 2:48 AM, Jordi Bares <[email protected]> wrote:
>
> Hello all,
>
> My name is Jordi Bares and work for Framestore Advertising in the UK and I
> hope I can contribute a bit on the OpenImageIO mailing list.
>
>
> My first question is, how can I do an sanity check on an image, specially EXR
> images.
>
> Is there any way to verify if an image has been properly closed and is well
> formed? What about missing (black) tiles?
>
> I don’t see anything in the documentation referring to that… am I missing
> something?
>
>
> Thanks in advance.
> jb
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org