image.size on a multilayer exr file returns 0

Hello,
I’m trying to get image size of multilayer exr files but it always returns 0.

for image in bpy.data.image["my_multilayer_exr"]:
    print (image.size[:])

This is working on regular images files but not on multilayer exr file format or render. How can I do?

Sadly, the api is not working for Multi-layered images… :frowning:
don’t even think this is easy to fix, since involve a bit changing of blender’s RNA

The only thing I can remember is to save each layer in seperated files.
(or using the pointer to the memory directly, thought I’d never tried it)

Ah that’s too bad!
Is it a way to get this and the pixel value by another python library maybe?

do not know :frowning:

I tried unsuccessfully to compile pyilmbase and OpenEXR for python3.4 … but theoretically it can be done.

maybe making the request to the dev team… Didn’t check if it’s already in the ToDo list.

@Secrop
If your os is windows you can find compiled versions in here
http://www.lfd.uci.edu/~gohlke/pythonlibs/
elif linux :
you can install them with your package manager and copy them from os’s python site packages folder to blender’s python site packages folder. (python versions should match)