Posts: 1,332
Joined: Jan 2016
Reputation:
54
Unless there is a change you have to save the pil image to the hhd first... If you do find a way please pm me I have been trying to do something similar for over a year now.
Posts: 110
Joined: Jan 2018
Reputation:
7
2018-06-15, 19:13
(This post was last modified: 2018-06-15, 19:46 by Takezo36.)
Hi,
Just a thought for your work around. Could you check the size and compare it to the length of your byte array? Would be a possible quickfix
More generally speaking why are you doing this two steps asynchronously in the first place?
And if you really have to do it async a more cleaner approach would be to let your file writer tell your ui when to load something.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
when you set image is this for a custom gui?
Or how are you passing it back into kodi...
The easiest way for this to work correctly every time is to set the image you want to display to a window property.. then in the skin have it check that it is filled... then it should auto fill once the image is actually ready... if nothing else use a delay of 1 sec before seting the image.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
I had it working just fine using the script to edit the image then set the image path to a window property. Then in the xml file make a image control set the texture as the window property you made... Have it be visible only if that property is filled... Maybe it is s the PC your using making the edit take longer and write.... I have a i5 with 12 gb or ram so normally a 1 to 2 second delay and it displayed... Keep in mind image needs to have a different name so that the Kodi cache will display it.
Posts: 103
Joined: Feb 2015
Reputation:
5
V8MEM
Senior Member
Posts: 103
you could make a service addon that serves the images over http, urls should work fine with controlimage.