Tell me more ×
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

up vote 6 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

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.