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?


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.dds test.png

To convert a directory full:

for file in *.dds
    convert "$file" "$(basename "$file" .dds).png"
  • 2
    Latest version of ImageMagick (6.8.7-4) writes DDS files as well – Paolo Gibellini Nov 5 '13 at 23:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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