Mass converting .tex bitmaps to .png

Hello there, I am trying to make a tool for Grim Dawn, I’ve managed to use the ArchiveTool to extract the contents of .arc and .arz files.

I’ve seen that .dbr records point to .tex files for item pictures. I know that TextureViewer provided by default can open & convert these to a more usable format like .png but I was wondering if you could guide me in a direction to help me mass convert .tex files to .pngs so I can use them easily in my tool.

Thanks in advance.