Get List of All Images in Folder

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

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

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>) - but this won’t work in the client.

1 Like

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.