As you can see, there’re 3 prints. The first one, trys to print image_A size and its validity. It prints:
(0,0) False
Then, Blender prints its data, it prints a bytearray. Then, it prints its size and validity… and now, it is:
(64,128) True
Why, at the first time, after loading the file, it is invalid… and, after printing its data, it is valid and the size is correct?
I want to understand this, because, when playing with ImageMix, it tells me that the size is incorrect… for Blender, at that time, it is (0,0), not (64,128). I don’t know how to make it valid (and to have the correct size) to use with ImageMIix.
Creating the ImageFFmpeg object opens the file but does not load the image buffer. For this you need to access directly the image property as you did in your test, or set the object as the source of a Texture object and refresh it. It’s only when the image buffer is accessed, either directly or indirectly, that the size of the image is computed.
Creating the ImageFFmpeg object opens the file but does not load the image buffer. For this you need to access directly the image property as you did in your test, or set the object as the source of a Texture object and refresh it. It’s only when the image buffer is accessed, either directly or indirectly, that the size of the image is computed.