Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

To convert a directory full:

for file in *.dds
do
    convert "$file" "$(basename "$file" .dds).png"
done
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

 
discard

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.