Image Management Tool Query

Is it possible to upload images automatically to image management tool through scripts? (Like Client/Gateway) by giving it a specific path to search for instead of manually uploading them each time we need a new image.
If yes, Please suggest how this can be done.

1 Like

It’s not supported, but you could call DTGatewayInterface.uploadImage yourself - you’ll have to provide all the requisite arguments.

Something like:

from com.inductiveautomation.ignition.designer.gateway import DTGatewayInterface
gi = DTGatewayInterface.instance
gi.uploadImage(<some component reference>, <image name>, <image description>, <filetype>, <destination directory>, <width>, <height>, <image data>)

Actually filling out the requisite fields, or watching a directory automatically, is up to you.

1 Like

Does anyone have an example of this working?