I am trying to use that ImageManager.insertImage function with code like this:
from com.inductiveautomation.ignition.gateway import IgnitionGateway
from com.inductiveautomation.ignition.gateway.images import ImageFormat
imageManager = IgnitionGateway.get().getImageManager()
imageManager.insertImageFolder("derp",None)
fImage = open("D:/test/test.png","rb")
bImage = fImage.read()
imageManager.insertImage("test","test desc",ImageFormat.PNG,"derp",bImage,100,100,1976)
When I run it on the gateway, it creates two folders named derp and der with no images inside, and no exceptions in log. What am I doing wrong?