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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
ImageMagick reads but doesn't write DDS. And of course it reads and writes PNG.
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