# Get List of All Images in Folder

**URL:** <https://forum.inductiveautomation.com/t/get-list-of-all-images-in-folder/24440>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [April 27, 2019, 6:28pm UTC](https://forum.inductiveautomation.com/t/get-list-of-all-images-in-folder/24440 "2019-04-27T18:28:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmaynes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmaynes/32/6852_2.png) [@cmaynes](https://forum.inductiveautomation.com/u/cmaynes)\
**Post date:** [April 27, 2019, 6:28pm UTC](https://forum.inductiveautomation.com/t/get-list-of-all-images-in-folder/24440/1 "2019-04-27T18:28:47Z")

</div>

How can I get a list of all image paths in a folder in Image Management?

---

<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:** [April 29, 2019, 3:41pm UTC](https://forum.inductiveautomation.com/t/get-list-of-all-images-in-folder/24440/2 "2019-04-29T15:41:46Z")

</div>

You need to call `ImageManager#getImages(<folder>)`, from the gateway scope.  
[http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/gateway/images/ImageManager.html](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/gateway/images/ImageManager.html)

Unfortunately, you will 1. have to be in the gateway scope and 2. have access to the shared ‘gateway context’ object.

If you’re in the designer, you can “cheat” a bit, and use [`DTGatewayInterface.getInstance().getImageList(<component>, <path>)`](http://files.inductiveautomation.com/sdk/javadoc/ignition79/795/com/inductiveautomation/ignition/designer/gateway/DTGatewayInterface.html) - but this won’t work in the client.

---

<div class="post-metadata">

**Author:** ![cmaynes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmaynes/32/6852_2.png) [@cmaynes](https://forum.inductiveautomation.com/u/cmaynes)\
**Post date:** [April 29, 2019, 4:11pm UTC](https://forum.inductiveautomation.com/t/get-list-of-all-images-in-folder/24440/3 "2019-04-29T16:11:43Z")

</div>

Thanks…I don’t have my dev machine available, but I think this should work in a gateway-level tag. I need the list available in all of my projects, so I can just run it there using **None** for the component and filtering out the other columns.
