Huh. I didn't realize Shin Noir had recently posted a Python script for extracting item icons to .gifs until I came to post this, but it's kinda cool that two people were working on similar things.
I put together a .Net 2.0 C# app to extract the spell icons and item icons from the EQ client's uifiles/default .dds and .tga files, creating .png images of each icon.
It has no dependencies. It's entirely self-contained. Just run it, point it to your input and output directories, and watch the progress bars fill up. Takes less than a minute.
Github Link:
https://github.com/Shendare/EQIconExtractor
Screenshot:
Figures in the screenshot are from a slightly older client. Current icon counts for the TDS client are:
Spell Icons: 252 (the last 35 of which are unused)
Item Icons: 7848 (the last 224 of which are unused)
Enjoy!