2021-04-23, 00:37
I'm trying to display a local image file (/test/hdr10.png) and if I've read correctly, using the GUI.ShowNotification method is what to use. The exactly call I'm using is:
The image /test/hdr10.png is:
Anyone know what I'm doing wrong here? Also, where is the image displayed? Does it just replace the little info/warning/error icons on either side of the message?
Quote:curl -s -X POST -H "content-type:application/json" "http://test:test@localhost:8080/jsonrpc" -d '{ "jsonrpc": "2.0", "id": "1", "method": "GUI.ShowNotification", "params": { "title":"test title", "message":"test message", "image":"image://test//hdr10.png", "displaytime":5000 } }'It's not working however and the logfile shows:
Code:
ERROR <general>: DoWork - Direct texture file loading failed for test
DEBUG <general>: GetImageHash - unable to stat url test
The image /test/hdr10.png is:
Code:
Format : PNG
Format/Info : Portable Network Graphic
Format_Compression : Deflate
Width : 256 pixels
Height : 256 pixels
Color space : RGBA
Bit depth : 8 bits
Compression mode : Lossless
Stream size : 77.6 KiB (100%)
Anyone know what I'm doing wrong here? Also, where is the image displayed? Does it just replace the little info/warning/error icons on either side of the message?