# Image Management Tool Query

**URL:** <https://forum.inductiveautomation.com/t/image-management-tool-query/32652>\
**Category:** General Discussion\
**Created:** [February 27, 2020, 6:58am UTC](https://forum.inductiveautomation.com/t/image-management-tool-query/32652 "2020-02-27T06:58:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amrutha.devaraju](https://avatars.discourse-cdn.com/v4/letter/a/e9c0ed/32.png) [@amrutha.devaraju](https://forum.inductiveautomation.com/u/amrutha.devaraju)\
**Post date:** [February 27, 2020, 6:58am UTC](https://forum.inductiveautomation.com/t/image-management-tool-query/32652/1 "2020-02-27T06:58:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 27, 2020, 4:17pm UTC](https://forum.inductiveautomation.com/t/image-management-tool-query/32652/2 "2020-02-27T16:17:54Z")

</div>

It’s not supported, but you could call [`DTGatewayInterface.uploadImage`](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/designer/gateway/DTGatewayInterface.html#uploadImage-java.awt.Component-java.lang.String-java.lang.String-java.lang.String-java.lang.String-int-int-byte:A-) yourself - you’ll have to provide all the requisite arguments.

Something like:

```python
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.

---

<div class="post-metadata">

**Author:** ![mcgheeiv](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@mcgheeiv](https://forum.inductiveautomation.com/u/mcgheeiv)\
**Post date:** [July 20, 2020, 6:29pm UTC](https://forum.inductiveautomation.com/t/image-management-tool-query/32652/3 "2020-07-20T18:29:45Z")

</div>

Does anyone have an example of this working?
