Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to convert thousands of DDS images to PNG format in Linux, preferably in command line.

Is there any program available for such task?

share|improve this question
up vote 12 down vote accepted

ImageMagick reads but doesn't write DDS. And of course it reads and writes PNG.

From identify -list format:

DDS* DDS r-- Microsoft DirectDraw Surface
PNG* PNG rw- Portable Network Graphics (libpng 1.2.37)

To convert a file (leaving the original intact):

convert test.png

To convert a directory full:

for file in *.dds
    convert "$file" "$(basename "$file" .dds).png"
share|improve this answer
It works like a charm, thanks! – Stolz Jul 2 '10 at 16:07
Latest version of ImageMagick (6.8.7-4) writes DDS files as well – Paolo Gibellini Nov 5 '13 at 23:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.